vendredi 3 avril 2020

How to redirect different users to view different pages in laravel

I need to redirect users to different url according to their their login details.

For Example

  • If the user id of 1 logs in he should be redirected. "/home"

  • If the user id of 2 logs in he should be redirected. "/contact"

  • And when they are logged out they should be redirected to the index page. "/"

  • And if they tries to paste the "/contact" url when they are logged out it should redirect them to "login" url



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire