Notflip Notflip - 1 year ago 83
PHP Question

Laravel event:generate only creates Event and returns error

I'm using Laravel 5.3, I'm following the example here

I create the following in my EventServiceProvider

protected $listen = [
'App\Events\UserWasRegistered' => [

When I then run

php artisan event:generate

It's only generating the event and throwing the following error

An option with shortcut "q" already exists.

Any idea what I might be doing wrong?
Thank you!

Answer Source

That's a Laravel bug, already fixed. Simply run composer update to update the Laravel framework and all should be ok.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download