Table builder - prefilter records
Hi All, how can I add where conditions to table?
2 Replies
public static function getEloquentQuery(): Builder
{
}
}
Hi Kiran, thanks but I would like to use it in a RelationManager.
I've found it!
protected function getTableQuery(): Builder { return parent::getTableQuery() ->where('role', '!=', 'admin'); }
protected function getTableQuery(): Builder { return parent::getTableQuery() ->where('role', '!=', 'admin'); }