Run the following command:
composer require newnet/setting
Create table for database driver:
php artisan migrate
You can either use the helper method like setting('foo')
or the facade Setting::get('foo')
Setting::get('foo', 'default');
Setting::set('foo', 'bar');
Setting::forget('foo');
setting('foo', 'default');
setting(['foo' => 'bar']);
setting()->get('foo', 'default');
setting()->set('foo', 'bar');
setting()->forget('foo');
You can get the settings directly in your blade templates using the helper method or the blade directive like @setting('foo')
The Newnet Setting Package is open-sourced software licensed under the MIT license.