Laravel Setting Helper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
composer.json

README.md

Laravel Setting Helper

Installation

composer require cleaniquecoders/setting

Register Service Provider

Open up config/app.php and register CleaniqueCoders\Providers\SettingServiceProvider::class, in providers key.

Available Commands

Helper

There's a helper available in using this package

Get Setting Based on Key Name

setting('key-name');

Set Setting Based on Key Name

setting('key-name','items to save');

Flush Setting

Following command will flush cached settings.

php artisan setting:flush

Pass in --truncate=1 to flush settings in database as well.