middleware('auth'); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { //$alluser = User::all(); // return view('Backend.viewUswe', $data); // if(Auth::user()->userType == 'user'){ // $data['allData'] = institution::all(); // $data['menus'] = onlineExamClass::where('classVersionID', '=', 1)->get(); // return view('Backend.notice', $data); // } // else{ $data['allData'] = institution::all(); $data['menus'] = onlineExamClass::where('classVersionID', '=', 1)->get(); return view('Backend.instituionSetup', $data); // } } }