ayekoto's avatar

laravel 5.0 command + upload file

Pls i have a image in my form that i want to send to my command using $this->dispatchFrom(PublishImageCommand::class, $request). But when i keep getting error

Argument 2 passed to App\Commands\UploadNewsCommand::__construct() must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile

Pls am new to using laravel command and events. Thanks in advance

0 likes
1 reply
ayekoto's avatar

love this community, have gotten an it to work. Thanks

Please or to participate in this conversation.