I have a problem that I want to add variable to session after user login (I use Laravel 5 and its auth by artisan make:auth. It looks like this: user->login->give_him_a_key->logout->delete_key. I make a middleware for this but I realize I can not make middleware run only 1 time when user login, then I go to file AuthenticateUser.php and add my code in function login. My teacher said that not good because i change code of laravel. He asked me try to make it without change code of laravel. But I try but can not find how to catch $request after user login and make it run only 1 time. I need some guideline and thanks for notice. Sorry about my English.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TSOHbv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire