Download the PHP package ferri/laravel-settings without Composer
On this page you can find all versions of the php package ferri/laravel-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ferri/laravel-settings
More information about ferri/laravel-settings
Files in ferri/laravel-settings
Package laravel-settings
Short Description Laravel 5 persistent settings in database package
License MIT
Informations about the package laravel-settings
Laravel Settings
Laravel 5 persistent settings in database package
Support Laravel 5.1, 5.2, 5.3
Installation
And add service provider to you config/app.php
Publish config and migration
Cache
You can disable cache when get setting value. Default is true
. Cache is inherit from active driver in config/cache.php
Usage
Set value
Set setting value
Get value
Get setting value
Check value
Determine if setting exists.
Forget value
Remove setting from database and cache if enabled
Flush settings
Remove all setting from database (truncate) and cache if enabled
Set Extra Columns
Sometime you want to specify some criteria for each your setting. This columns will be added to each query.
Extra columns always resetted after call of one these methods set
, get
, has
, forget
.
Helpers
Settings Instance
Resolve settings service instance.
Set value
Set setting value
Set setting value with extra columns
Get value
Get setting value
Get setting value with extra columns
Testing
Inspiration
This package was inspired by these great packages
All versions of laravel-settings with dependencies
illuminate/support Version 5.1.*|5.2.*|5.3.*
illuminate/database Version 5.1.*|5.2.*|5.3.*
illuminate/filesystem Version 5.1.*|5.2.*|5.3.*