Download the PHP package dadehpardaz/laravel-settings without Composer
On this page you can find all versions of the php package dadehpardaz/laravel-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dadehpardaz/laravel-settings
More information about dadehpardaz/laravel-settings
Files in dadehpardaz/laravel-settings
Package laravel-settings
Short Description Store key value pair in database as settings
License MIT
Homepage https://github.com/mortezababanezhadsh/laravel-settings
Informations about the package laravel-settings
Laravel Settings
Use qcod/laravel-settings
to store key value pair settings in the database.
All the settings saved in db is cached to improve performance by reducing sql query to zero.
Installation
1 - You can install the package via composer:
2 - If you are installing on Laravel 5.4 or lower you will be needed to manually register Service Provider by adding it in config/app.php
providers array and Facade in aliases arrays.
In Laravel 5.5 or above the service provider automatically get registered and a facade Setting::get('app_name')
will be available.
3 - Now run the migration by php artisan migrate
to create the settings table.
Optionally you can publish migration by running
Getting Started
You can use helper function settings('app_name')
or Settings::get('app_name')
to use laravel settings.
Available methods
Groups
From v 1.0.6
You can organize your settings into groups. If you skip the group name it will store settings with default
group name.
If you are updating from previous version dont forget to run the migration
You have all above methods available just set you working group by calling ->group('group_name')
method and chain on:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing
The package contains some integration/smoke tests, set up with Orchestra. The tests can be run via phpunit.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
About QCode.in
QCode.in (https://www.qcode.in) is blog by Saqueib which covers All about Full Stack Web Development.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-settings with dependencies
laravel/framework Version ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0