hasOne('App\Models\Contracts\Contract', 'id', 'contract_id'); } public function Contract() { return $this->belongsTo(Contract::class); } }