PHPackages                             touhidurabir/laravel-meta-fields - 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. touhidurabir/laravel-meta-fields

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

touhidurabir/laravel-meta-fields
================================

A laravel package to handle model specific additional meta fields in an elegant way.

1.0.1(4y ago)2684MITPHP

Since Sep 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/touhidurabir/laravel-meta-fields)[ Packagist](https://packagist.org/packages/touhidurabir/laravel-meta-fields)[ RSS](/packages/touhidurabir-laravel-meta-fields/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Laravel Meta Fields
===================

[](#laravel-meta-fields)

A php package for laravel framework to handle model meta data in a elegant way.

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

[](#installation)

Require the package using composer:

```
composer require touhidurabir/laravel-meta-fields
```

To publish the config and migration file:

```
php artisan vendor:publish --provider="Touhidurabir\MetaFields\MetaFieldsServiceProvider"
```

Configuration
-------------

[](#configuration)

The **meta-field** config file contains the configuration option of meta table name and meta model. It also provides an cast option that will be applied to meta table's **metas** column which contains the meta fields as **array**, **object** or **collection(Laravel Collection)** . Read the config file to know more details .

Usage
-----

[](#usage)

To use with a model , just use the **HasMeta** tarit.

```
