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

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome