Download the PHP package roundly-consulting/attributes-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/attributes-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/attributes-for-laravel
More information about roundly-consulting/attributes-for-laravel
Files in roundly-consulting/attributes-for-laravel
Package attributes-for-laravel
Short Description Attach multiple dynamic key/value attributes to any Eloquent model.
License MIT
Homepage https://roundly-consulting.com/open-source/docs/attributes-for-laravel
Informations about the package attributes-for-laravel
Attributes for Laravel
Attach dynamic, typed key/value attributes to any Eloquent model through one polymorphic table: no schema change per attribute, no EAV boilerplate. Values keep their real PHP type, an optional registry validates them, and query scopes filter owners by their attributes.
Installation
Requires PHP 8.4 and Laravel 13.
If your owner models have UUID/ULID keys, set ATTRIBUTES_KEY_TYPE before migrating.
Usage
Add the trait and its contract to any model:
Then write, read and query typed attributes (definitions are optional):
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/attributes-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 attributes-for-laravel with dependencies
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0
roundly-consulting/crypto-for-laravel Version ^2.0
roundly-consulting/enums-for-laravel Version ^2.0
roundly-consulting/package-toolkit-for-laravel Version ^2.0