Laravel 5.2 : Do something after user has logged in?

后端 未结 6 2153
时光说笑
时光说笑 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:51

    Alief's Answer below works fine as expected. But as i googled through, using the Event Handlers is probably the more preferred way. (It works like custom hooks).

    So without any less respects to Alief's Answer below, let me choose --> this Event Handers approach i just found out.

    Thanks all with regards!

提交回复
热议问题