tykus2 years ago Best Answer Level 104ReplyReport SpamAssuming the relation name is client on the Project model; you can use whereHas like this: $projects = auth()->user()->projects() ->whereHas('client', fn($builder) => $builder->where('name', $clientName)) ->sortable() ->paginate(config('PAGINATION_NUM')); Like Reply 1 like