Skip to content

amdad121/setting-laravel

Repository files navigation

Setting option for Laravel

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

This is a minimal setting option package for Laravel. You can easily use on your project.

Installation

You can install the package via composer:

composer require amdadulhaq/setting-laravel

You can publish and run the migrations with:

php artisan vendor:publish --tag="setting-laravel-migrations"
php artisan migrate

Usage

use AmdadulHaq\Setting\Models\Setting;

Setting::set('app_name', 'Laravel');

return Setting::get('name');
// Laravel

return Setting::remove('name');
// true

or more simple ways

setting()->set('app_name', 'Laravel');

return setting()->get('app_name');
// Laravel

return setting()->remove('app_name');
// true

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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