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]); }
public static function getEloquentQuery(): Builder { $authenticatedUserId = auth()->user()->id; return User::query()->whereNotIn('id', [$authenticatedUserId]); }