Hello Guys I Have This Function In My Model
public function photo () {
return $this -> photo;
}
And I Called The Function From My Blade
{{$model = \App\Models\mainCategory::class}}
<td> <img style="width: 150px; height: 100px;" src="{{asset('assets/images/main-categories/' . $model -> photo() // Here I Have an Error `Call to a member function photo() on string` )}}"></td>
I Have This Error Call to a member function photo() on string