Add delete retrive settings/options to laravel application
samrat131/laravel-options-table is a Laravel package for add delete retrive settings/options to laravel application.
It currently has 0 GitHub stars and 10 downloads on Packagist (latest version v1.1).
Install it with composer require samrat131/laravel-options-table.
Discover more Laravel packages by samrat131
or browse all Laravel packages to compare alternatives.
Last updated
This package allow to add delete retrive options value in laravel applications.
To use laravel-options-table in your project, please use Composer to add the package to your laravel applications
composer require samrat131/laravel-options-table
Edit config/app.php file and add following lines (only for laravel version below 5.5)
'providers' => [
...
Samrat131\LaravelOptionsTable\OptionServiceProvider::class,
]
'aliases' => [
...
'Option' => Samrat131\LaravelOptionsTable\OptionFacade::class,
]
Run this command in terminal php artisan vendor:publish --tag="migrations" to publish migration file of this package.
After that run php artisan migrate to migrate the table. This will create options table in your database.
Option::set('key', 'value');
Option::get('key');
Option::drop('key');