PHPackages                             paulhenri-l/laravel-has-meta - 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. paulhenri-l/laravel-has-meta

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

paulhenri-l/laravel-has-meta
============================

laravel-has-meta

1.0.0(4y ago)0162MITPHPPHP ^7.3|^8.0

Since Oct 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/paulhenri-l/laravel-has-meta)[ Packagist](https://packagist.org/packages/paulhenri-l/laravel-has-meta)[ RSS](/packages/paulhenri-l-laravel-has-meta/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

LaravelHasMeta
==============

[](#laravelhasmeta)

[![PHP Tests](https://github.com/paulhenri-l/laravel-has-meta/actions/workflows/php-tests.yml/badge.svg)](https://github.com/paulhenri-l/laravel-has-meta/actions/workflows/php-tests.yml)[![PHP Code Style](https://github.com/paulhenri-l/laravel-has-meta/actions/workflows/php-code-style.yml/badge.svg)](https://github.com/paulhenri-l/laravel-has-meta/actions/workflows/php-code-style.yml)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

This package make it possible to manage a json meta column using dot notation.

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

[](#installation)

```
composer require paulhenri-l/laravel-has-meta

```

Usage
-----

[](#usage)

In your migrations add a `meta` column with a type of `json`

```
Schema::create('users', function ($table) {
    $table->bigIncrements('id');
    $table->json('meta');
    $table->timestamps();
});
```

Now inside your model use the `HasMeta` trait.

```
