Download the PHP package carsdotcom/laravel-json-model without Composer
On this page you can find all versions of the php package carsdotcom/laravel-json-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download carsdotcom/laravel-json-model
More information about carsdotcom/laravel-json-model
Files in carsdotcom/laravel-json-model
Download carsdotcom/laravel-json-model
More information about carsdotcom/laravel-json-model
Files in carsdotcom/laravel-json-model
Vendor carsdotcom
Package laravel-json-model
Short Description Laravel models backed by JSON data
License MIT
Package laravel-json-model
Short Description Laravel models backed by JSON data
License MIT
Please rate this library. Is it a good library?
Informations about the package 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();
All versions of laravel-json-model with dependencies
PHP Build Version
Package Version
Requires
carsdotcom/laravel-json-schema Version
^v1.0.1 || ^v2 || ^2.1
ext-json Version *
php Version ^8.1
laravel/framework Version ^9.19 || ^10.0 || ^11.0
ext-json Version *
php Version ^8.1
laravel/framework Version ^9.19 || ^10.0 || ^11.0
The package carsdotcom/laravel-json-model contains the following files
Loading the files please wait ....