Skip to content

How to call event in new Lumen #63

Description

@gfernandez-me

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions