public function pay()
{
return $this->belongsTo('App\Pay');
}
{{$consultation->pay}}
{"id":2,"name":"\u041e\u041cC","description":null,"creator":null,"created_at":null,"updated_at":null}
{{$consultation->pay->name}}
Trying to get property of non-object (View: /home/pi/laravel/resources/views/staff_doctor/patient/consultation/index.blade.php)