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)
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)