New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

carsdotcom/laravel-json-model

Laravel models backed by JSON data
34,007 1
Install
composer require carsdotcom/laravel-json-model
Latest Version:v1.4.10
PHP:^8.2
Laravel:10 – 13
Older releases:9
License:MIT
Last Updated:Oct 8, 2026
Links: GitHub  ·  Packagist
Maintainer: jwadhams

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.

  1. In AppServiceProvider boot method: JsonModel::setEventDispatcher($this->app['events']);
  2. In AppServiceProvider register method: JsonModel::clearBootedModels();

Related Packages

leochien/laravel-spgateway

spgateway library for laravel

11,967 34
simon80119/laravel-spgateway

spgateway library for laravel

6,296 0
brandon14/fossabot-commander

Library to easily create Fossabot commands invokable via the Fossabot customapi...

4,863 2
drh/mpesa

Mpesa Payments Library

3,638 3
cosninix/cos

Very legacy collection of various utility functions

2,860 0

Version History

Version Released PHP Laravel License
v1.4.10 ^8.2 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v1.4.9 ^8.2 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v1.4.8 ^8.2 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v1.4.7 ^8.2 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
v1.4.6 ^8.1 ^9.19 || ^10.0 || ^11.0 || ^12.0 MIT