FilamentF
Filament3y ago
Gush

UsersRelationManager

i have a groups resource with a UsersRelationManager where is_owner can acess but in the table i dont want to appear in the table so i dont acidently delete myself from that group...

I tried something like this:

public static function getEloquentQuery(): Builder
    {
        $authenticatedUserId = auth()->user()->id;

        return User::query()->whereNotIn('id', [$authenticatedUserId]);
    }


but i still appear in the table
Was this page helpful?