rest-api-with-lumen icon indicating copy to clipboard operation
rest-api-with-lumen copied to clipboard

How to call event in new Lumen

Open gfernandez-me opened this issue 6 years ago • 0 comments

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)

gfernandez-me avatar Sep 01 '18 00:09 gfernandez-me