Download the PHP package strongnguyen/laravel-options without Composer
On this page you can find all versions of the php package strongnguyen/laravel-options. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download strongnguyen/laravel-options
More information about strongnguyen/laravel-options
Files in strongnguyen/laravel-options
Package laravel-options
Short Description Global options loaded from the database
License MIT
Homepage https://github.com/strongnguyen29/laravel-options
Informations about the package laravel-options
Laravel Options
Global key-value store in the database
Installation
To get started with laravel-options, use Composer to add the package to your project's dependencies:
Publish, migrate
By running php artisan vendor:publish --provider="StrongNguyen\Options\OptionsServiceProvider"
in your project all files for this package will be published. For this package, it's only a migration. Run php artisan migrate
to migrate the table. There will now be an options
table in your database.
Usage
With the option()
helper, we can get and set options:
If you want to check if an option exists, you can use the facade:
Console
It is also possible to set options within the console:
Testing
Contributing
Contributions are welcome, thanks to y'all :)
About StrongNguyen
StrongNguyen is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-options with dependencies
illuminate/support Version ^6.0|^7.0|^8.0
illuminate/database Version ^6.0|^7.0|^8.0