PHPackages                             oza/laravel-database-jsonable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. oza/laravel-database-jsonable

ActiveLibrary[Database &amp; ORM](/categories/database)

oza/laravel-database-jsonable
=============================

Laravel package to fill and retrieve your database fields in JSON formats

1.0.2(7y ago)19891[1 issues](https://github.com/oza75/Laravel-Database-Jsonable/issues)MITPHP

Since May 27Pushed 7y agoCompare

[ Source](https://github.com/oza75/Laravel-Database-Jsonable)[ Packagist](https://packagist.org/packages/oza/laravel-database-jsonable)[ RSS](/packages/oza-laravel-database-jsonable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

### Laravel package to fill and retrieve your database fields in JSON formats

[](#laravel-package-to-fill-and-retrieve-your-database-fields-in-json-formats)

this package allows you to fill some fields of your model in json format. For example, if you have a posts table, which has a field of action where you can put the actions as the number of comments likes etc ... you can easily do it with this package

### Installation

[](#installation)

```
   composer require oza/laravel-database-jsonable

```

### Usage

[](#usage)

- Just add `DatabaseJsonable` trait and `$jsonable`property that contains jsonable fields to your model.

```
