PHPackages                             sukohi/eloquent-array - 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. sukohi/eloquent-array

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

sukohi/eloquent-array
=====================

A Laravel package to deal with array values that we can search through where clause.

6.0.0(9y ago)031MITPHP

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/EloquentArray)[ Packagist](https://packagist.org/packages/sukohi/eloquent-array)[ RSS](/packages/sukohi-eloquent-array/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (21)Used By (0)

EloquentArray
=============

[](#eloquentarray)

A Laravel package to deal with array values that we can search through where clause.
This package is only for Laravel 5.3+.

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

[](#installation)

Execute the following command.

```
composer require sukohi/eloquent-array:6.*

```

then set EloquentArrayServiceProvider in your config/app.php.

```
Sukohi\EloquentArray\EloquentArrayServiceProvider::class,

```

Preparation
===========

[](#preparation)

Execute the following command to publish and migrate the migration.

```
php artisan vendor:publish --provider="Sukohi\EloquentArray\EloquentArrayServiceProvider"
php artisan migrate

```

Then set `EloquentArrayTrait` in your model like so.

```
