Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

newnetvn/setting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newnet Setting Package

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')

License

The Newnet Setting Package is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages