add role vip redirect to studio after login
This commit is contained in:
parent
3a16773f5d
commit
d9febf0fd0
|
@ -36,7 +36,7 @@ class AuthenticatedSessionController extends Controller
|
||||||
//Redirect admin and users to their panels
|
//Redirect admin and users to their panels
|
||||||
$role = Auth::user()->role;
|
$role = Auth::user()->role;
|
||||||
|
|
||||||
if($role == 'user'){
|
if($role == 'user' || $role == 'vip'){
|
||||||
return redirect('/studio/index');
|
return redirect('/studio/index');
|
||||||
}elseif($role == 'admin'){
|
}elseif($role == 'admin'){
|
||||||
return redirect('/panel/index');
|
return redirect('/panel/index');
|
||||||
|
|
Loading…
Reference in New Issue