-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from Laravel-Backpack/pr/111
Add ability to change settings table name and route
- Loading branch information
Showing
8 changed files
with
90 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Table Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Database Settings Table Name | ||
| | ||
*/ | ||
'table_name' => 'settings', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Route | ||
|-------------------------------------------------------------------------- | ||
| | ||
| URL Segment aka route to the Settings panel. | ||
| | ||
*/ | ||
'route' => 'setting', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Config Prefix | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The prefix used to add your settings into the configuration array. | ||
| With this default you can grab your settings with: config('settings.your_setting_key') | ||
| | ||
| WARNING: WE ADVISE TO NOT LEAVE THIS EMPTY / CHECK IF IT DOES NOT CONFLICT WITH OTHER CONFIG FILE NAMES | ||
| | ||
| - if you leave this empty and your keys match other configuration files you might ovewrite them. | ||
| | ||
*/ | ||
'config_prefix' => 'settings', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Migration file name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The file name for the settings migration file. It will be created in database_path('/migrations/%name_you_choose%.php) | ||
| Note: .php extension is automatically added. | ||
| | ||
*/ | ||
'migration_name' => '2015_08_04_131614_create_settings_table', | ||
]; |
This file contains 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
This file contains 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
This file contains 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