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

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button