where('client_id', $client->id) ->where('carrier_id', $this->id) ->where('active', true)->exists(); } public function bookings(): BelongsToMany { return $this->belongsToMany(Booking::class); } public function preferredLanes(): BelongsToMany { return $this->belongsToMany(ClientCarrierPreferredLane::class, 'carrier_id', 'id'); } }