Table builder - prefilter records

Hi All, how can I add where conditions to table?
2 Replies
Kiran Timsina
Kiran Timsina2y ago
public static function getEloquentQuery(): Builder {
}
Csinesz
CsineszOP2y ago
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'); }
Want results from more Discord servers?
Add your server