PHPackages                             ghanuz/relations - 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. ghanuz/relations

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

ghanuz/relations
================

To create a Eloquent relationships with comma separated foreign key or using a FIND\_IN\_SET mysql function.

3.6(1y ago)75.2k—0%6[2 issues](https://github.com/ghanu119/findinset_relation/issues)MITPHPPHP ^7.0|^8.0|^8.1|^8.2

Since Jun 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ghanu119/findinset_relation)[ Packagist](https://packagist.org/packages/ghanuz/relations)[ RSS](/packages/ghanuz-relations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

findinset\_relation
===================

[](#findinset_relation)

Set eloquent relationships with table that contains comma separated values as a foreign key

Installation
============

[](#installation)

Get package using composer :

`composer require ghanuz/relations`

1.
==

[](#1)

You have to extends `GhanuZ\Model` class instead of `Illuminate\Database\Eloquent\Model`

```
