Skip to content

novay/settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Settings

Store key-value settings in database with encryption support.

Installation

composer require novay/settings
php artisan migrate
php artisan vendor:publish --tag=settings-config

Tambahkan di .env:

SETTINGS_ENCRYPT=true
SETTINGS_ENCRYPTION_DRIVER=laravel   # atau kunci

Usage

settings()->set('app_name', 'My App');
settings('app_name');

settings()->group('payment')->set('midtrans_key', 'sk-xxx');

@setting('app_name')          // Blade

Artisan Commands

php artisan setting:set app_name "My App"
php artisan setting:list
php artisan setting:forget api_key
php artisan setting:rotate-key

License

MIT License.

About

Laravel Settings

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages