关于显示用户信息时调用 $user->gravatar () 方法的问题?
ErrorException (E_ERROR)
Call to undefined method Illuminate\Database\Query\Builder::gravatar() (View: /home/vagrant/Code/sample/resources/views/shared/_user_info.blade.php) (View: /home/vagrant/Code/sample/resources/views/shared/_user_info.blade.php)
这是一个什么原因?求熟悉这块的指教一下。
推荐文章: