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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire