php - Protecting all admin/ routes with auth in Laravel -
i brand new laravel , setting admin panel authorization on first application. way have files setup setup is: controllers/ admin/ dashboard.php settings.php non-admin-controller1.php non-admin-controller1.php views/ admin/ dashboard.blade.php login.blade.php template.blade.php non-admin-view1.php non-admin-view1.php non-admin-view1.php ...and these routes route::get('admin/login', function() { return view::make('admin.login'); }); route::get('admin/logout', function() { return auth::logout(); return redirect::to('admin/login'); }); route::post('admin/login', function() { $userdata = array('username' => input::get('username'), 'password' => input::get('password')); if (auth::attempt($userdata)) { return redirect::to('admin'); } else { return redirect:...