我对Laravel非常陌生,我在LoginController中重写了LoginController方法。我正在调用isActivated方法,它位于app\User下的用户模型中,但是我得到了下面的错误,我甚至硬编码了它,以返回true进行测试。我肯定我在做些蠢事,有什么建议吗?Call to a member function isActivated() on nullprotected
我对laravel很陌生,我试图通过扩展Laravel AccessTokenController类来生成oauth令牌,并且我总是得到这个错误"message": "Call to a memberfunction respondToAccessTokenRequest() on null",。这是我的班
class B2BTokenController extends \Laravel\Passport\Http\Controllers\AccessTokenC
created_at', 'desc')->withPivot('id')->get();Call to a member function tasks() on nullis_null($tasks))
$tasks = $student->group->tasks()->orderBy('created_at', 'desc')->withPivot('id&
我在上一个关于Codecourse的Laravel课程。Category::class, $category->children->first());
} 但是,当我运行测试时,我得到: Call to a member function save() on null这门课程已经有几年的历史了,所以我认为Laravel版本之间有一些不同,但这似乎更基本一些。