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