middleware('auth'); } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index(Request $request) { // 관리자만 접속 가능하다. if(!$request->user()->is_admin) { abort(401); } return view('admin.index'); } }