vendredi 29 avril 2016

Laravel listener subscribe to all events

I know that I can put a list of all the events but it's just stupid.

public function subscribe($events)
{
    $events->listen(
        'App\Events\UserLoggedIn',
        'App\Listeners\UserEventListener@onUserLogin'
    );

    $events->listen(
        'App\Events\UserLoggedOut',
        'App\Listeners\UserEventListener@onUserLogout'
    );
}

I'd like to use some sort of wildcart. Is it possible?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/26AgQHW
via IFTTT

Aucun commentaire:

Enregistrer un commentaire