satheez / laravel-settings
This is my package laravel-settings
v1.0
2022-07-22 12:38 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-09 22:53:27 UTC
README
Laravel Settings
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.