123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?php
- return [
-
- 'name' => 'MTB Admin',
-
- 'logo' => ' Prime Admin',
-
- 'logo-mini' => '<img src="/vendor/dcat-admin/images/logo.png">',
-
- 'favicon' => '@admin/images/favicon.ico',
-
- 'default_avatar' => '@admin/images/default-avatar.jpg',
-
- 'login_background_image' => '@admin/images/login-bg.jpg',
-
- 'route' => [
- 'domain' => env('ADMIN_ROUTE_DOMAIN'),
- 'prefix' => env('ADMIN_ROUTE_PREFIX', 'prime-control'),
- 'namespace' => 'App\\Admin\\Controllers',
- 'middleware' => ['web', 'admin'],
- 'enable_session_middleware' => false,
- ],
-
- 'directory' => app_path('Admin'),
-
- 'title' => 'Admin',
-
- 'assets_server' => env('ADMIN_ASSETS_SERVER'),
-
- 'https' => env('ADMIN_HTTPS', false),
-
- 'auth' => [
- 'enable' => true,
- 'controller' => App\Admin\Controllers\AuthController::class,
- 'guard' => 'admin',
- 'guards' => [
- 'admin' => [
- 'driver' => 'session',
- 'provider' => 'admin',
- ],
- ],
- 'providers' => [
- 'admin' => [
- 'driver' => 'eloquent',
- 'model' => Dcat\Admin\Models\Administrator::class,
- ],
- ],
-
- 'remember' => true,
-
-
- 'except' => [
- 'auth/login',
- 'auth/logout',
- ],
- 'enable_session_middleware' => false,
- ],
-
- 'grid' => [
-
- 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class,
-
- 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class,
-
- 'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class,
- 'actions' => [
- 'view' => Dcat\Admin\Grid\Actions\Show::class,
- 'edit' => Dcat\Admin\Grid\Actions\Edit::class,
- 'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class,
- 'delete' => Dcat\Admin\Grid\Actions\Delete::class,
- 'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class,
- ],
-
- 'column_selector' => [
- 'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class,
- 'store_params' => [
- 'driver' => 'file',
- ],
- ],
- ],
-
- 'helpers' => [
- 'enable' => true,
- ],
-
- 'permission' => [
-
- 'enable' => true,
-
-
- 'except' => [
- '/',
- 'auth/login',
- 'auth/logout',
- 'auth/setting',
- ],
- ],
-
- 'menu' => [
- 'cache' => [
-
- 'enable' => false,
- 'store' => 'file',
- ],
-
- 'bind_permission' => true,
-
- 'role_bind_menu' => true,
-
- 'permission_bind_menu' => true,
- 'default_icon' => 'feather icon-circle',
- ],
-
- 'upload' => [
-
- 'disk' => 'oss',
-
- 'directory' => [
- 'image' => 'images',
- 'file' => 'files',
- ],
-
- 'tinymce_directory' => [
- 'image' => 'uploads/images',
- ],
- 'oss_image' => [
- 'accept' => 'jpg,png,gif,jpeg,webp',
- 'max_size' => 500,
- ],
- ],
-
- 'database' => [
-
- 'connection' => '',
-
- 'users_table' => 'admin_users',
- 'users_model' => Dcat\Admin\Models\Administrator::class,
-
- 'roles_table' => 'admin_roles',
- 'roles_model' => Dcat\Admin\Models\Role::class,
-
- 'permissions_table' => 'admin_permissions',
- 'permissions_model' => Dcat\Admin\Models\Permission::class,
-
- 'menu_table' => 'admin_menu',
- 'menu_model' => Dcat\Admin\Models\Menu::class,
-
- 'role_users_table' => 'admin_role_users',
- 'role_permissions_table' => 'admin_role_permissions',
- 'role_menu_table' => 'admin_role_menu',
- 'permission_menu_table' => 'admin_permission_menu',
- 'settings_table' => 'admin_settings',
- 'extensions_table' => 'admin_extensions',
- 'extension_histories_table' => 'admin_extension_histories',
- ],
-
- 'layout' => [
-
- 'color' => 'default',
-
- 'body_class' => [],
- 'horizontal_menu' => false,
- 'sidebar_collapsed' => false,
-
- 'sidebar_style' => 'light',
- 'dark_mode_switch' => false,
-
- 'navbar_color' => 'bg-primary',
- 'full_screen' => false,
- 'home_url'=> env('APP_URL')
- ],
-
- 'exception_handler' => Dcat\Admin\Exception\Handler::class,
-
- 'enable_default_breadcrumb' => true,
-
- 'extension' => [
-
-
- 'dir' => base_path('dcat-admin-extensions'),
- ],
-
- 'multi_app' => [
-
-
- 'distributor' => true,
- ],
- ];
|