123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?php
- return [
- /*
- * Laravel-admin name.
- */
- 'name' => 'Laravel-admin',
- /*
- * Logo in admin panel header.
- */
- 'logo' => '<b>Laravel</b> admin',
- /*
- * Mini-logo in admin panel header.
- */
- 'logo-mini' => '<b>La</b>',
- /*
- * Route configuration.
- */
- 'route' => [
- 'prefix' => 'admin',
- 'namespace' => 'App\\Admin\\Controllers',
- 'middleware' => ['web', 'admin'],
- ],
- /*
- * Laravel-admin install directory.
- */
- 'directory' => app_path('Admin'),
- /*
- * Laravel-admin html title.
- */
- 'title' => 'Admin',
- /*
- * Use `https`.
- */
- 'secure' => false,
- /*
- * Laravel-admin auth setting.
- */
- 'auth' => [
- 'guards' => [
- 'admin' => [
- 'driver' => 'session',
- 'provider' => 'admin',
- ],
- ],
- 'providers' => [
- 'admin' => [
- 'driver' => 'eloquent',
- 'model' => Encore\Admin\Auth\Database\Administrator::class,
- ],
- ],
- ],
- /*
- * Laravel-admin upload setting.
- */
- 'upload' => [
- 'disk' => 'admin',
- 'directory' => [
- 'image' => 'images',
- 'file' => 'files',
- ],
- ],
- /*
- * Laravel-admin database setting.
- */
- 'database' => [
- // Database connection for following tables.
- 'connection' => '',
- // User tables and model.
- 'users_table' => 'admin_users',
- 'users_model' => Encore\Admin\Auth\Database\Administrator::class,
- // Role table and model.
- 'roles_table' => 'admin_roles',
- 'roles_model' => Encore\Admin\Auth\Database\Role::class,
- // Permission table and model.
- 'permissions_table' => 'admin_permissions',
- 'permissions_model' => Encore\Admin\Auth\Database\Permission::class,
- // Menu table and model.
- 'menu_table' => 'admin_menu',
- 'menu_model' => Encore\Admin\Auth\Database\Menu::class,
- // Pivot table for table above.
- 'operation_log_table' => 'admin_operation_log',
- 'user_permissions_table' => 'admin_user_permissions',
- 'role_users_table' => 'admin_role_users',
- 'role_permissions_table' => 'admin_role_permissions',
- 'role_menu_table' => 'admin_role_menu',
- ],
- /*
- * By setting this option to open or close operation log in laravel-admin.
- */
- 'operation_log' => [
- 'enable' => true,
- /*
- * Routes that will not log to database.
- *
- * All method to path like: admin/auth/logs
- * or specific method to path like: get:admin/auth/logs
- */
- 'except' => [
- 'admin/auth/logs*',
- ],
- ],
- /*
- * @see https://adminlte.io/docs/2.4/layout
- */
- 'skin' => 'skin-blue-light',
- /*
- |---------------------------------------------------------|
- |LAYOUT OPTIONS | fixed |
- | | layout-boxed |
- | | layout-top-nav |
- | | sidebar-collapse |
- | | sidebar-mini |
- |---------------------------------------------------------|
- */
- 'layout' => ['sidebar-mini', 'sidebar-collapse'],
- /*
- * Background image in login page
- */
- 'login_background_image' => '',
- /*
- * Version displayed in footer.
- */
- 'version' => '1.5.x-dev',
- /*
- * Settings for extensions.
- */
- 'extensions' => [
- ],
- ];
|