carsdotcom/laravel-json-model
Laravel Json Model
We really love Laravel as an ORM. But we have a part of our application that persists to a document store, not a relational database. Json Models let us use the best parts of the Eloquent Models, but instead of being backed by a row in a table, they're always serialized to JSON. (Which can include being serialized to an attribute on a traditional Laravel Model!)
Setup
For now, you will need to add the following for events to work properly.
- In AppServiceProvider boot method:
JsonModel::setEventDispatcher($this->app['events']); - In AppServiceProvider register method:
JsonModel::clearBootedModels();
Related Packages
zachflower/ignorable-observers
Dynamically disable/enable Laravel's Eloquent model observers
354,982
24
mookofe/tail
RabbitMQ and PHP client for Laravel and Lumen that allows you to add and listen...
53,093
52
ipunkt/composer-about
Parses composer.lock and returns informations about the used packages
10,256
3
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.4.9 | ^8.2 | ^10.0 | | MIT | |
| v1.4.8 | ^8.2 | ^10.0 | | MIT | |
| v1.4.7 | ^8.2 | ^10.0 | | MIT | |
| v1.4.6 | ^8.1 | ^9.19 | | MIT | |
| v1.4.5 | ^8.1 | ^9.19 | | MIT | |
| v1.4.4 | ^8.1 | ^9.19 | | MIT | |
| v1.4.3 | ^8.1 | ^9.19 | | MIT | |
| v1.4.2 | ^8.1 | ^9.19 | | MIT | |
| v1.4.1 | ^8.1 | ^9.19 | | MIT | |
| v1.4.0 | ^8.1 | ^9.19 | | MIT | |
| v1.3.0 | ^8.1 | ^9.19 | | MIT | |
| v1.2.2 | ^8.1 | ^9.19 | | MIT | |
| v1.2.1 | ^8.1 | ^9.19 | | MIT | |
| v1.2.0 | ^8.1 | ^9.19 | | MIT | |
| v1.1.0 | ^8.1 | ^9.19 | | MIT | |
| v1.0.1 | ^8.1 | ^9.19 | MIT | |
| v1.0.0 | ^8.1 | ^9.19 | MIT |