add role vip redirect to studio after login

This commit is contained in:
aprillio 2021-07-06 15:36:17 +07:00
parent 3a16773f5d
commit d9febf0fd0
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class AuthenticatedSessionController extends Controller
//Redirect admin and users to their panels
$role = Auth::user()->role;
if($role == 'user'){
if($role == 'user' || $role == 'vip'){
return redirect('/studio/index');
}elseif($role == 'admin'){
return redirect('/panel/index');