vendredi 21 octobre 2016

How to tie into Illuminate events Laravel 5.3

I want a message on my applications login page when the event of logout is trigged under vendor/laravel/framework/src/Illuminate/Auth/SessionGuard.php.

Since this is in core I thought it would be as simple as adding

protected $listen = [ 'App\Events\Logout' => [ 'App\Listeners\LogoutEvent', ], ];

as stated in http://ift.tt/2eOnysb

But after running artisan command it just creates a spot for me to make my own event. So my question is, can I listen to core events in Laravel like Logout without creating my own?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire