hubungan hasone di Laravel
//Model Function
public function hasOneFunction(){
return $this->hasOne('App\Models\ModelName', 'targetedId');
}
//in controller function
$data = ModelName::with('hasOneFunction')->get();
Isaac