forked from emadha/laravel-dynamic-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mehmet Faruk Demirkoparan
committed
Feb 3, 2025
1 parent
269ab1b
commit 0b99063
Showing
4 changed files
with
54 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
<?php | ||
|
||
return [ | ||
/* The Config database table name */ | ||
'table' => 'aconfig', | ||
/* * The database table where dynamic configurations will be stored */ | ||
'table' => 'aconfig', | ||
|
||
/* | ||
* The key that defines which config file should be loaded dynamically | ||
* and store into the database | ||
* Add that key to any config file to make it dynamic. | ||
*/ | ||
'dynamic_key' => 'dynamics', | ||
|
||
/* | ||
* they key which will have the defaults of a config key | ||
* example: config('defaults.app.name'); This is added on runtime. | ||
*/ | ||
'defaults_key' => 'defaults', | ||
'keys' => [ | ||
/* | ||
* 'app.name' => 'Laravel', | ||
* 'app.env' => 'production', | ||
*/ | ||
], | ||
|
||
/* | ||
* Delete orphan keys | ||
* if set to true and delete a key from the actual config file, | ||
* that key will be deleted from database. | ||
*/ | ||
/* * Automatic deletion of records that exist in the database but are not defined * in the aconfig.php file (orphan records). */ | ||
'auto_delete_orphan_keys' => true, | ||
]; | ||
]; |
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