cerbero90 / query-filters

Laravel package to filter Eloquent model records based on query parameters. Fully inspired by the Laracasts episode https://laracasts.com/series/eloquent-techniques/episodes/4
MIT License
84 stars 15 forks source link

On 1.4.0 receiving provider not found error #5

Closed LorenzoSapora closed 5 years ago

LorenzoSapora commented 5 years ago

Updated my composer, and pulled in your 1.4.0 release, but having to roll back, because receiving the error:

Class 'Cerbero\QueryFilters\QueryFiltersServiceProvider' not found 

Even when dumping autoload, or attempting anything with composer. I'll look into this problem in a couple of days, if you don't get around to it, but for now, I'm rolling back.

Laravel:~5.8 Query Filters: 1.4.0

cerbero90 commented 5 years ago

Hi Lorenzo,

The service provider has been moved and its fully qualified name is now

Cerbero\QueryFilters\Providers\QueryFiltersServiceProvider

Since your Laravel version is greater than 5.4, you can also remove the service provider name from your app.php config file and run

php artisan package:discover

to automatically find the new service provider.

Apologies for any inconvenience, please let me know if the problem persists.

LorenzoSapora commented 5 years ago

No need to apologise.

Note for anyone else finding this issue:

Thanks, Andrea