mehdi-fathi / eloquent-filter

Eloquent Filter is a package for filter data of models by the query strings. Easy to use and fully dynamic.
https://mehdi-fathi.github.io/eloquent-filter/
MIT License
430 stars 43 forks source link

Target class [eloquentFilter] does not exist. #199

Closed arislanhaikal closed 1 year ago

arislanhaikal commented 1 year ago

Describe the bug I have followed step by step, but after doing the filter it shows up Target class [eloquentFilter] does not exist.

To Reproduce Steps to reproduce the behavior using Laravel 9, PHP 8:

  1. Install
  2. Add provider and alias to app.php
  3. Add trait Filterable in model
  4. Add filter() -> User::filter()->get();

Has anyone have some issue?

mehdi-fathi commented 1 year ago

@arislanhaikal Thanks, for let me know it has been fixed now and you need to run composer update