hasOne(Client::class, 'id', 'client_id'); } public function client(){ return $this->hasOne(Client::class, 'id', 'client_id'); } }