carsdotcom/laravel-json-model
Composer 安装命令:
composer require carsdotcom/laravel-json-model
包简介
Laravel models backed by JSON data
README 文档
README
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();
统计信息
- 总下载量: 28.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-12