carsdotcom/laravel-json-model

Laravel models backed by JSON data
32,440 1
Install
composer require carsdotcom/laravel-json-model
Latest Version:v1.4.9
PHP:^8.2
License:MIT
Last Updated:Aug 10, 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

assurrussa/dummy-cache

Dummy cache for Laravel.

571 0
mookofe/tail

RabbitMQ and PHP client for Laravel and Lumen that allows you to add and listen...

53,042 52
spinen/laravel-geometry

Wrapper over the geoPHP Class to make it integrate with Laravel better.

529,038 41
zachflower/ignorable-observers

Dynamically disable/enable Laravel's Eloquent model observers

350,490 24
jonhoo/laravel-former

Laravel form library

40 2