57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?php
|
|
|
|
use IriksIT\Manager\Modules;
|
|
|
|
return [
|
|
|
|
/*
|
|
| The URL prefix and the route name prefix of the manager.
|
|
*/
|
|
'path' => env('MANAGER_PATH', 'manager'),
|
|
|
|
/*
|
|
| Middleware around every manager route. Authentication of the manager itself
|
|
| is left to the host app: use the guard it already has.
|
|
*/
|
|
'middleware' => ['web', 'auth'],
|
|
|
|
/*
|
|
| The Eloquent model of the people who log in. Must use IriksIT\Manager\Concerns\HasManagerAccess.
|
|
*/
|
|
'user_model' => env('MANAGER_USER_MODEL', 'App\\Models\\User'),
|
|
|
|
/*
|
|
| The modules this manager knows. Add your own class here to give a site its own part.
|
|
*/
|
|
'available' => [
|
|
Modules\Users\UsersModule::class,
|
|
Modules\Media\MediaModule::class,
|
|
Modules\Pages\PagesModule::class,
|
|
Modules\Posts\PostsModule::class,
|
|
Modules\Reviews\ReviewsModule::class,
|
|
],
|
|
|
|
/*
|
|
| Switch a part on or off per site. A key left out falls back to the default of the
|
|
| module: users and media are on, everything else is off. A module that is off has no
|
|
| routes, no tables (its migrations are not loaded), no menu item and no permissions.
|
|
*/
|
|
'modules' => [
|
|
'users' => true,
|
|
'media' => true,
|
|
'pages' => env('MANAGER_PAGES', true),
|
|
'posts' => env('MANAGER_POSTS', true),
|
|
'reviews' => env('MANAGER_REVIEWS', false),
|
|
],
|
|
|
|
/*
|
|
| The disk for uploaded media.
|
|
*/
|
|
'media_disk' => env('MANAGER_MEDIA_DISK', 'public'),
|
|
|
|
/*
|
|
| Prefix for the tables of the package.
|
|
*/
|
|
'table_prefix' => 'manager_',
|
|
];
|