跟着教程出现了这个错误?
Call to a member function link() on null (View: /home/vagrant/code/larabbs/resources/views/users/_replies.blade.php)
反复检查过,全部复制粘贴,不知道怎么回事?
是这里报错:
resources/views/users/_replies.blade.php
<a href="{{ $reply->topic->link(['#reply' . $reply->id]) }}">
{{ $reply->topic->title }}
</a>
推荐文章: