Created
April 23, 2017 04:22
-
-
Save endrureza/47b1e6f0ab514045ee67c2fd84626b19 to your computer and use it in GitHub Desktop.
Config for voyager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| User config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify voyager user configs | |
| | |
*/ | |
'user' => [ | |
'add_default_role_on_register' => true, | |
'default_role' => 'user', | |
'namespace' => App\User::class, | |
'default_avatar' => 'users/default.png', | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Controllers config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify voyager controller settings | |
| | |
*/ | |
'controllers' => [ | |
'namespace' => 'App\\Http\\Controllers\\Voyager', | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Models config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify default model namespace when creating BREAD. | |
| Must include trailing backslashes. If not defined the default application | |
| namespace will be used. | |
| | |
*/ | |
'models' => [ | |
//'namespace' => 'App\\', | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Path to the Voyager Assets | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify the location of the voyager assets path | |
| | |
*/ | |
'assets_path' => '/vendor/tcg/voyager/assets', | |
/* | |
|-------------------------------------------------------------------------- | |
| Storage Config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify attributes related to your application file system | |
| | |
*/ | |
'storage' => [ | |
'disk' => 'public', | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Database Config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify voyager database settings | |
| | |
*/ | |
'database' => [ | |
'tables' => [ | |
'hidden' => ['migrations', 'data_rows', 'data_types', 'menu_items', 'password_resets', 'permission_role', 'permissions', 'settings'], | |
], | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Multilingual configuration | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify if you want Voyager to ship with support for | |
| multilingual and what locales are enabled. | |
| | |
*/ | |
'multilingual' => [ | |
/* | |
* Set whether or not the multilingual is supported by the BREAD input. | |
*/ | |
'bread' => false, | |
/* | |
* Select default language | |
*/ | |
'default' => 'en', | |
/* | |
* Select languages that are supported. | |
*/ | |
'locales' => [ | |
'en', | |
//'pt', | |
], | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Widgets Config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can specify voyager administration settings | |
| | |
*/ | |
'widgets' => [ | |
[ | |
'name' => 'User', | |
'icon' => 'voyager-group', | |
'model' => TCG\Voyager\Models\User::class, | |
'url' => 'admin/users', | |
'image' => '/images/widget-backgrounds/02.png', | |
], | |
[ | |
'name' => 'Post', | |
'icon' => 'voyager-news', | |
'model' => TCG\Voyager\Models\Post::class, | |
'url' => 'admin/posts', | |
'image' => '/images/widget-backgrounds/03.png', | |
], | |
[ | |
'name' => 'Page', | |
'icon' => 'voyager-file-text', | |
'model' => TCG\Voyager\Models\Page::class, | |
'url' => 'admin/pages', | |
'image' => '/images/widget-backgrounds/04.png', | |
], | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Dashboard config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you can modify some aspects of your dashboard | |
| | |
*/ | |
'dashboard' => [ | |
// Add custom list items to navbar's dropdown | |
'navbar_items' => [ | |
'Profile' => [ | |
'route' => 'voyager.profile', | |
'classes' => 'class-full-of-rum', | |
'icon_class' => 'voyager-person', | |
], | |
'Home' => [ | |
'route' => '/', | |
'icon_class' => 'voyager-home', | |
'target_blank' => true, | |
], | |
'Logout' => [ | |
'route' => 'voyager.logout', | |
'icon_class' => 'voyager-power', | |
], | |
], | |
'data_tables' => [ | |
'responsive' => true, // Use responsive extension for jQuery dataTables that are not server-side paginated | |
], | |
'widgets' => [ | |
'TCG\\Voyager\\Widgets\\UserDimmer', | |
'TCG\\Voyager\\Widgets\\PostDimmer', | |
'TCG\\Voyager\\Widgets\\PageDimmer', | |
], | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| UI Generic Config | |
|-------------------------------------------------------------------------- | |
| | |
| Here you change some of the Voyager UI settings. | |
| | |
| TODO: Move style properties to assets/css | |
| | |
*/ | |
'login' => [ | |
'gradient_a' => '#ffffff', | |
'gradient_b' => '#ffffff', | |
], | |
'primary_color' => '#22A7F0', | |
'show_dev_tips' => true, // Show development tip "How To Use:" in Menu and Settings | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment