Download the PHP package michaelnabil230/laravel-setting without Composer
On this page you can find all versions of the php package michaelnabil230/laravel-setting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michaelnabil230/laravel-setting
More information about michaelnabil230/laravel-setting
Files in michaelnabil230/laravel-setting
Package laravel-setting
Short Description This package allows you to persists setting for Laravel projects.
License MIT
Homepage https://github.com/michaelnabil230/laravel-setting
Informations about the package laravel-setting
This package allows you to persist in setting for Laravel projects and support laravel 10.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
You can either access the setting store via its facade
You could also use the setting()
helper:
You could also use the @setting() directive blade:
Command line helper
Store cache
When reading from the store, you can enable the cache.
You can also configure flushing of the cache when writing and configure time to live.
Reading will come from the store, and then from the cache, this can reduce load on the store.
Configuration
Default:
You can specify here your default store driver that you would to use.
Drivers:
This is the list of the supported store drivers. You can expand this list by adding a custom store driver.
The store config is structured like this:
1. Create the Custom Store class
2. Register the Custom Store
Go to the config/setting.php
config file and edit the drivers
list:
If you used the abstract MichaelNabil230\Setting\Contracts\Store
class, you can pass a options
array
like credential keys, path ...
Last and not least, you can set it as the default
store.
Integration with stancl/tenancy
Install the package like usual, but publish the migrations and move them to migrations/tenant
:
Then add this to your AppServiceProvider::boot()
method:
Testing
Support
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.
All versions of laravel-setting with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0