The next step is to add Filterable trait to model , if you want to use elefilter on it.
This trait adds scopeFilter method on the model and detects which method and which class filter should be executed. Also this trait adds a property $filter_namespace for complicated directory structures for class filter. an example is here
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model
use EleFilter\Traits\Filterable
class User extends Model
{
use Filterable;
# code continue ...
© 2025 elefilter