change instanceOf to is_subclass_of, instanceOf return false even tho we implement the function in our model. but when I change it to is_subclass_of it works
here is my class I did implement it, but like I show you, the image error, it doesn't work if use instaceOf
class User extends Authenticatable implements FilamentUser, HasAllowedFields, HasAllowedSorts, HasAllowedFilters
// Which fields can be used to filter the results through the query string
public static function getAllowedFilters(): array
{
return ['name'];
}
change instanceOf to is_subclass_of, instanceOf return false even tho we implement the function in our model. but when I change it to is_subclass_of it works
here is my class I did implement it, but like I show you, the image error, it doesn't work if use instaceOf
thank you