{"repo":"appstract/laravel-options","free":true,"listed":false,"github":"https://github.com/appstract/laravel-options","clone":"git clone https://github.com/appstract/laravel-options.git","description":"Global key-value store in the database","language":"PHP","stars":729,"topics":["laravel","options","database","key-value","laravel-package"],"license":"MIT","category":"databases-storage","readme_excerpt":"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.","default_branch":null,"files":null,"tree":[],"storefront":"/r/appstract","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/appstract/laravel-options/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}