dimanche 19 juin 2016

laravel 5 auth system: change redirect path and custom error messages

I've implemented laravel 5 auth system in my project, however i want to some changes in it

Custom error messages

1.Now the auth system show only one error message (ie these creditinals do not match our records) ,but i need to different error messages based on failing login parameters (ie if email is invalid it shows invalid email or if user account is disabled it shows account blocked )

Redirection path

Conside the situation user is logged in and he is trying to access login view again auth system redirect to default route (ie \) ,but i need to change this route to user profile (ie index/dashboard)

I don't know how to edit the default auth system ,its implemented using traits unfortunately i don't have enough knowledge in traits:(



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire