samrat131 / laravel-options-table
Add delete retrive settings/options to laravel application
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/samrat131/laravel-options-table
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-10-29 02:43:49 UTC
README
This package allow to add delete retrive options value in laravel applications.
Installation
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,
]
Vendor Publish & Migrate
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.
Usage
Add value
Option::set('key', 'value');
Retrive value
Option::get('key');
Delete value
Option::drop('key');