大家好,我的模型中有这个函数
public function photo () {
return $this -> photo;
}
我从我的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>
我有这个错误Call to a member function photo() on string