PHPackages                             payter/has-column-many - 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. payter/has-column-many

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

payter/has-column-many
======================

This package will provide functionality to add coma separated ID relations for Laravel Eloquent models

118.9k↓50%1PHP

Since May 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/PayteR/has-column-many)[ Packagist](https://packagist.org/packages/payter/has-column-many)[ RSS](/packages/payter-has-column-many/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Comma separated IDs, JSON and PHP Serialized relationships for Laravel Eloquent models
======================================================================================

[](#comma-separated-ids-json-and-php-serialized-relationships-for-laravel-eloquent-models)

You will be able to make relations of comma separated values in your MySQL table super easely, with adding just few lines of code into your Eloquent model.

It

So if you use Laravel and your relations in the table looks like this, then this package is for you:

[![Comma separated example](./docs/table-example.png)](./docs/table-example.png)[![PHP Serialized example](./docs/table-serialized-example.png)](./docs/table-serialized-example.png)

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

[](#installation)

Require package with composer

```
composer require payter/has-column-many
```

Basic usage
-----------

[](#basic-usage)

Using of this package is super easy - you just need to include `UseColumnMany` trait to your model.

```
