rupadana / filament-api-service

A simple api service for supporting filamentphp
https://filamentphp.com/plugins/rupadana-api-service
MIT License
143 stars 28 forks source link

change instanceOf to is_subclass_of #79

Closed christmex closed 3 days ago

christmex commented 3 days ago

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

image

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'];
    }

thank you