Call a function after login fails or success laravel 5.3 -


i want call custom function when user success in login , when fails can't find solution, use laravel 5.3 , make:auth method.

i have logincontroller emtpy.

the route login post:

route::post('login', ['as' => 'login.post', 'uses' => 'auth\logincontroller@login']); 

i have helper function called flash('the messaje') sends jquery alert on view, use in controllers , works fine, don't know put code show alert if auth login fails , success.

thanks!

as default logincontroller uses authenticatesusers trait, need write custom methods sendloginresponse , sendfailedloginresponse. can of reuse trait methods , add custom mode want execute.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -