I have to login both admin and user in same browser in Laravel. In Zend Frame Work it is possible using $authNamespace = new Zend_Session_Namespace('Zend_Auth'). Is there any similar approach available in Laravel?
Asked
Active
Viewed 232 times
2
Kiren S
- 3,037
- 7
- 41
- 69
-
I guess admin is an user already. – Alexey Mezenin Mar 31 '16 at 06:58
-
@AlexeyMezenin yes admin is a user in same db table. – Kiren S Mar 31 '16 at 06:59
-
So, what exactly are you trying to achieve then? – Alexey Mezenin Mar 31 '16 at 06:59
-
@AlexeyMezenin $_SESSION['admin']['user'] = "adminuser"; $_SESSION['userside']['user'] = "normaluser"; – Kiren S Mar 31 '16 at 07:05
-
Sounds similar to my answer here: http://stackoverflow.com/questions/33311771/laravel-and-multi-sessions-from-the-same-browser/33404870#33404870 – Chris Mar 31 '16 at 07:44
-
Is it possible to implement this functionality in Laravel 5.2 using auth guards? – Kiren S Apr 01 '16 at 13:35
-
Maybe you are willing to implement Roles and Permissions? – alariva Apr 10 '16 at 16:10