0
我使用“映射命令属性从要求”收到此错误试图让指挥调度
试图让非对象的属性非对象laravel财产
我的代码
use App\Command\CreateSomethingCommand;
public function store(Request $request)
{
$this->dispatchFrom(CreateSomethingCommand::class,$request,['user'=>Auth::User()->id]);
.....
}
凡为命令在laravel说 https://laravel.com/docs/5.0/bus#dispatching-commands
请帮忙!
谢谢!明确表示 –
非常欢迎。 – Bogdan