使用单元测试 new 不了 model 怎么办
$user = Member::query()->find(1);
dd($user);
Error : Call to a member function connection() on null
好奇怪啊~phpstorm
推荐文章: