newnetcms / setting
There is no license information available for the latest version (v0.0.1) of this package.
Setting
v0.0.1
2023-06-28 09:35 UTC
Requires
README
Getting Started
1. Install
Run the following command:
composer require newnet/setting
2. Database
Create table for database driver:
php artisan migrate
Usage
You can either use the helper method like setting('foo')
or the facade Setting::get('foo')
Facade
Setting::get('foo', 'default'); Setting::set('foo', 'bar'); Setting::forget('foo');
Helper
setting('foo', 'default'); setting(['foo' => 'bar']); setting()->get('foo', 'default'); setting()->set('foo', 'bar'); setting()->forget('foo');
Blade Directive
You can get the settings directly in your blade templates using the helper method or the blade directive like @setting('foo')