Download the PHP package appstract/laravel-options without Composer
On this page you can find all versions of the php package appstract/laravel-options. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download appstract/laravel-options
More information about appstract/laravel-options
Files in appstract/laravel-options
Package laravel-options
Short Description Global options loaded from the database
License MIT
Homepage https://github.com/appstract/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="Appstract\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:
The helpers are available as Blade directives:
Console
It is also possible to set options within the console:
Testing
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
Appstract 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|^9.0|^10.0|^11.0
illuminate/database Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0