fix skit2

This commit is contained in:
fifi97
2022-01-12 21:37:06 +08:00
parent 10518e171c
commit 665a8fcd06
19 changed files with 108 additions and 204 deletions
+13
View File
@@ -25,6 +25,19 @@ class HomeController extends Controller
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
$auth_user = Auth::user();
$api_url = config('api.url');
if($auth_user->roles == 'admin' || $auth_user->roles == 'operasi')
return redirect()->route('home');
elseif($auth_user->roles == 'akaun')
return redirect()->route('akaun.home');
else
return redirect()->route('home');
}
public function indexhome()
{
$auth_user = Auth::user();