akbsit / laravel-options
Add options for app.
1.0.0
2023-12-16 11:20 UTC
Requires
- php: ^8.1
- akbsit/helper-json: ^1.0
- laravel/framework: ^9.0|^10.0
README
Install
To install package, you need run command:
composer require akbsit/laravel-options
Next install migrations:
php artisan migrate
Usage
Facade Akbsit\Options\Facades\Option
:
Option::put(string $sOption, mixed $value, string $sGroup = OptionMain::DEFAULT_GROUP): OptionModel
;Option::get(string $sOption, string $sGroup = OptionMain::DEFAULT_GROUP): OptionModel|null
;Option::getByGroup(string $sGroup = OptionMain::DEFAULT_GROUP): Collection
;Option::getByOption(string $sOption): Collection
.