PHPackages                             mawuekom/laravel-searchable - 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. [Search &amp; Filtering](/categories/search)
4. /
5. mawuekom/laravel-searchable

ActiveLibrary[Search &amp; Filtering](/categories/search)

mawuekom/laravel-searchable
===========================

Laravel package to make easy search on Eloquent model

v1.2.0(4y ago)1121MITPHPPHP ^7.4|^8.0

Since Jul 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mawuva/laravel-searchable)[ Packagist](https://packagist.org/packages/mawuekom/laravel-searchable)[ Docs](https://github.com/mawuva/laravel-searchable)[ RSS](/packages/mawuekom-laravel-searchable/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

Laravel package to make easy search on Eloquent model
=====================================================

[](#laravel-package-to-make-easy-search-on-eloquent-model)

This package is provided with a service provider and trait to make search on your eloquent model

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

[](#installation)

You can install the package via composer:

```
composer require mawuekom/laravel-searchable
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

Go to **config/app.php**, and add this in the providers key

```
'providers' => [
    ...
    Mawuekom\LaravelSearchable\LaravelSearchableServiceProvider::class,
    ...
]
```

### Lumen

[](#lumen)

Go to **bootstrap/app.php**, and add this in the specified key

```
// Add provider
$app->register(Mawuekom\LaravelSearchable\LaravelSearchableServiceProvider::class);
```

### Your model which inherits an eloquent model

[](#your-model-which-inherits-an-eloquent-model)

```
