satheez/laravel-settings

This is my package laravel-settings


README

68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31

Laravel Settings

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is used get & set data by using dedicated database table

Installation

You can install the package via composer:

composer require satheez/laravel-settings

You can publish and run the migrations with:

php artisan vendor:publish --provider="Satheez\LaravelSettings\LaravelSettingsServiceProvider"
php artisan migrate

Usage

Set settings data

// Method 1
settings(['foo' => 'bar']);

// Method 2
settings_set('foo', 'bar');

Get settings data

// Method 1
settings('foo'); // output: bar

// Method 2
settings_get('foo'); // output: bar

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.