I want to get data of rows from a table that are not set as foreign keys in the related table. Please guide me on this in Laravel. I have used this but it's returning all data
$pages = DB::table('client_requests')
->leftJoin('bid_requests', 'client_requests.id', '=', 'bid_requests.client_request_id')
->select('client_requests.*')
->orderBy('created_at', 'DESC')
->paginate(20);