adding akaun page

This commit is contained in:
fifi97
2021-12-12 07:45:45 +08:00
parent 44aa893822
commit f2bacbd955
21 changed files with 4385 additions and 73 deletions
@@ -69,6 +69,12 @@ class LoginController extends Controller
$user->save();
return redirect()->route('home');
}elseif($auth_user['roles'] == 'akaun'){
$user = User::find($auth_user['id']);
$user->cawangan = $request->cawangan;
$user->save();
return redirect()->route('akaun.home');
}else{
return redirect('login')->with('error', 'Oppes! You have entered invalid credentials');
}