I've installed Lumen with Homestead and I am trying to implement Events.
In the documentation it says
.. uncomment the $app->withFacades() call in your bootstrap/app.php file.
To subscribe to an event, you may use the Event::listen method
When I copy-paste the example code from the docs I get the next error
Fatal error: Class 'Event' not found in /home/vagrant/project/...
I couldn't find anything in the Lumen docs why this isn't working.
On a tutorial for Laravel 5 I noticed that an Event created using the artisan make:event
command has a use statement like use App\Events\Event;
That could be the missing Event class I need, but how should one get it in a Lumen project if that artisan command doesn't exist?