Adding where clause to query using current session
Can I always filter UserResource rows to only rows that belong to the same group as the current logged in user (
$query->where('group_id', auth()->user()->group_id
)? Where would I apply such a where clause? getTableQuery says deprecated β Override the table() method to configure the table
so I'm not sure how to do it π€Solution:Jump to solution
Possibly working with
$table->modifyQueryUsing(function (Builder $query) {})
π€2 Replies