master
sergeybodin 2023-06-22 10:46:35 +03:00
parent bfa13d0bf2
commit cdd8da9fdb
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@ use App\Models\Objects\NirObject;
use App\Models\Objects\ObjectType; use App\Models\Objects\ObjectType;
use App\Models\Pages\Page; use App\Models\Pages\Page;
use App\Models\Permission; use App\Models\Permission;
use App\Models\Publications\Publication;
use App\Models\Role; use App\Models\Role;
use App\Models\SocialProvider; use App\Models\SocialProvider;
use App\Models\User; use App\Models\User;
@ -55,7 +56,8 @@ class AppServiceProvider extends ServiceProvider
'object' => NirObject::class, 'object' => NirObject::class,
'object-type' => ObjectType::class, 'object-type' => ObjectType::class,
'page' => Page::class 'page' => Page::class,
'publication' => Publication::class,
]); ]);
} }
} }

View File

@ -123,8 +123,8 @@ class PagesTableSeeder extends Seeder
'children' => [ 'children' => [
'Новости' => ['type' => PageType::PUBLICATIONS], 'Новости' => ['type' => PageType::PUBLICATIONS],
'СМИ о нас' => ['type' => PageType::REGISTRY], 'СМИ о нас' => ['type' => PageType::REGISTRY],
'Фотогалерея' => [], 'Фотогалерея' => ['type' => PageType::PUBLICATIONS],
'Видеоархив' => [], 'Видеоархив' => ['type' => PageType::PUBLICATIONS],
'Контакты для СМИ' => [], 'Контакты для СМИ' => [],
] ]
], ],