amdad121/setting-laravel

Setting option for Laravel

v1.0.1 2023-12-10 12:01 UTC

This package is auto-updated.

Last update: 2024-04-15 21:51:56 UTC


README

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 amdad121/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.