middleware('auth');
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
if(Auth::User()->role == "admin")
{
return view('admin.dashboard');
}
elseif(Auth::User()->role == "instructor")
{
return view('instructor.dashboard');
}
else
{
abort(404, 'Page Not Found.');
}
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param \App\admin $admin
* @return \Illuminate\Http\Response
*/
public function show(admin $admin)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\admin $admin
* @return \Illuminate\Http\Response
*/
public function edit(admin $admin)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\admin $admin
* @return \Illuminate\Http\Response
*/
public function update(Request $request, admin $admin)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\admin $admin
* @return \Illuminate\Http\Response
*/
public function destroy(admin $admin)
{
//
}
}