rest-api-with-lumen
rest-api-with-lumen copied to clipboard
How to call event in new Lumen
In /app/Repositories/EloquentUserRepository.php
The correct use of Event in Laravel/Lumen is:
\Event::fire(new UserCreatedEvent($user));
or
event(new UserCreatedEvent($user));
And my IDE dont know who is \Event in the first case (PhpStorm)