middleware('auth'); $this->middleware('role:Guest'); } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('dashboard'); } /** * Display the profile of the user * The profile will include the ESI Scopes Registered, the character image, and character name * * @return \Illuminate\Http\Response */ public function profile() { $scopes = DB::table('EsiScopes')->where('character_id', Auth()->user()->character_id)->get(); $permissions = DB::table('user_permissions')->where('charcter_id', Auth()->user()->character_id)->get(); $roles = DB::table('user_roles')->where('character_id', Auth()->user()->character_id)->get(); $data = [ 'scopes' => $scopes, 'permissions' => $permissions, 'roles' => $roles, ]; return view('/dashboard/profile')->with('data', $data); } }