Download the PHP package roundly-consulting/options-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/options-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/options-for-laravel
More information about roundly-consulting/options-for-laravel
Files in roundly-consulting/options-for-laravel
Package options-for-laravel
Short Description Manage global or per-entity options and preferences with typed casts and in-request caching.
License MIT
Homepage https://roundly-consulting.com/open-source/docs/options-for-laravel
Informations about the package options-for-laravel
Options for Laravel
Global or per-model options, settings and preferences for Laravel. Each option is a small class with its key, default value, cast and validation rules; values can belong to the whole app or to any Eloquent model (a user, a team, a tenant) and are cached, typed and evented.
Installation
Requires PHP 8.4 and Laravel 12 or 13.
If your owner models have UUID/ULID keys, set OPTIONS_KEY_TYPE before migrating.
Usage
Describe an option once (php artisan make:option ThemeOption --key=theme scaffolds it):
Then read and write it — globally or for any model:
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/options-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). See LICENSE for details.
All versions of options-for-laravel with dependencies
illuminate/contracts Version ^12.0|^13.0
roundly-consulting/package-toolkit-for-laravel Version ^1.3.0