LaravelPackages.net
Acme Inc.
Toggle sidebar
samrat131/laravel-options-table

Add delete retrive settings/options to laravel application

10
0
v1.1
About samrat131/laravel-options-table

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

Laravel Options Table

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

Star History Chart