Laravel 5.2 : Do something after user has logged in?

后端 未结 6 2163
时光说笑
时光说笑 2020-12-18 18:07

(I\'m a beginner of Laravel)

I\'m using Laravel 5.2. I have successfully enabled the Authentication; by doing the php artisan make:auth

6条回答
  •  眼角桃花
    2020-12-18 18:47

    You could try setting up event listeners for the Auth events that are fired.

    You can setup a listener that listens for Illuminate\Auth\Events\Login to handle what you need post login and Illuminate\Auth\Events\Logout for post logout.

    Laravel Docs - Authentication - Events

提交回复
热议问题