jurager/eav
Jurager/Eav
Add typed, localized attributes to Eloquent models, with support for inheritance and select fields.
$product->eav()->set('color', 'blue')->save();
$product->eav()->value('color'); // 'blue'
Requirements
PHP >= 8.4 and Laravel 13.x
Installation
composer require jurager/eav
See installation and setup. The full documentation is also available online.
Testing
vendor/bin/phpunit
The suite runs on SQLite in memory. To run it on PostgreSQL, which has its own column types and indexes, point it at an empty database:
DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_DATABASE=eav_test DB_USERNAME=postgres vendor/bin/phpunit
License
Open source, licensed under the MIT license.
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.13 | ^8.4 | ^13.0 | MIT | |
| 1.0.12 | ^8.4 | ^13.0 | MIT | |
| 1.0.11 | ^8.4 | ^13.0 | MIT | |
| 1.0.10 | ^8.4 | ^13.0 | MIT | |
| 1.0.9 | ^8.4 | ^13.0 | MIT | |
| 1.0.8 | ^8.4 | ^13.0 | MIT | |
| 1.0.7 | ^8.4 | ^13.0 | MIT | |
| 1.0.6 | ^8.4 | ^13.0 | MIT | |
| 1.0.5 | ^8.4 | ^13.0 | MIT | |
| 1.0.4 | ^8.4 | ^13.0 | MIT | |
| 1.0.3 | ^8.4 | ^13.0 | MIT | |
| 1.0.2 | ^8.4 | ^13.0 | MIT | |
| 1.0.1 | ^8.4 | ^13.0 | MIT | |
| 1.0.0 | ^8.4 | ^13.0 | MIT |