mmanos / laravel-search

A search package for Laravel 5.
MIT License
352 stars 59 forks source link

Support for Laravel 5.2 #49

Open lawrence615 opened 8 years ago

lawrence615 commented 8 years ago

Hello,

Does the package support Laravel 5.2+?

I keep getting this error

Fatal error: Call to undefined method Mmanos\Search\Search::search()
francoism90 commented 8 years ago

Works perfectly fine here on Laravel 5.3. In config/app.php:

'providers' => [
      ...
      Mmanos\Search\SearchServiceProvider::class,
],

'aliases' => [
     ...
     'Search' => Mmanos\Search\Facade::class,
     'Input' => Illuminate\Support\Facades\Input::class,
]

Also don't forget to add use Search; at the top of your controllers.