PHPackages                             tobymaxham/laravel-properties - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tobymaxham/laravel-properties

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tobymaxham/laravel-properties
=============================

This package can be used to add some functionality to your Eloquent Models using properties

v1.2.1(5mo ago)012MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

Since Jun 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/TobyMaxham/laravel-properties)[ Packagist](https://packagist.org/packages/tobymaxham/laravel-properties)[ Docs](https://github.com/TobyMaxham/laravel-properties)[ RSS](/packages/tobymaxham-laravel-properties/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

TobyMaxham Laravel Properties
=============================

[](#tobymaxham-laravel-properties)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d845cdc35eb5bbb4803669ef59d1dfc4b15448f2ff3d0492037360777128974f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f62796d617868616d2f6c61726176656c2d70726f706572746965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-properties)[![Total Downloads](https://camo.githubusercontent.com/f6e1f9bda24720a23aa837ce125f606960ae53a3efd4426533f4113a90d71f33/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f62796d617868616d2f6c61726176656c2d70726f706572746965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-properties)

This package can be used to add some functionality to your Eloquent Models using properties.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tobymaxham/laravel-properties
```

Usage
-----

[](#usage)

Your Eloquent Models should use the `TobyMaxham\LaravelProperties\Traits\UseProperties` trait.

The trait contains a few methods to help you handle JSON-Date in your Database Table Column.

Your models' migrations should have a field called `properties` to save the JSON-Data.

Here's an example of how to implement the trait:

```
