正在获取MethodNotAllowedHttpException,可以';I don’我不知道我哪里搞砸了.需要


Getting MethodNotAllowedHttpException, can't see where I screwed up. Need a second set of eyes

好吧,我先说我是盲人。我在路由中做了一些事情,导致出现MethodNotAllowedHttpException,但看不到问题。我需要另一双眼睛来看看这里的问题是什么。它就在我面前,但我无法建立联系。。

路线:

Route::get('cms', 'CmsController@index');
Route::get('login', 'CmsController@index');
Route::get('cms/login', 'CmsController@login');
Route::get('cms/dashboard', 'CmsController@index');

控制器:

class CmsController extends BaseController {
public function index()
{
    return View::make('cms.login');
}
public function login()
{
    if (Auth::attempt(array('username' => Input::get('username'), 'password' => Input::get('password'))))
    {
        return Redirect::intended('cms/dashboard');
    }   
    else
    {
        return Redirect::to('/login');
    }   
}

意外从git中取出旧表单,删除表单method="POST"