Thursday, March 15, 2018

Different redirection after session out according to usertype. Laravel - development

Different redirection after session out according to usertype. Laravel

I am trying to redirect users as of their user type when session out.I have field ‘usertype’ on users table which differentiates users. I have redirection path set to following on config/session.php :

'path' => '/apanel',

This path is for admin users. I want to redirect other users to

 'path' => '/',

How can i achieve this?



from Laravel Questions and Answers https://laravelquestions.com/php/different-redirection-after-session-out-according-to-usertype-laravel/
via Lzo Media

No comments:

Post a Comment