dougua9328 2016-04-04 15:54
浏览 48

得到MethodNotAllowedHttpException,无法看到我搞砸了。 需要第二组眼睛

Okay, I'll start by saying I'm blind. I did something in my routes that caused a MethodNotAllowedHttpException to throw up but can't see the issue. I need a second set of eyes to see what the issue here is. It's right in front of me but I can't make the connection..

Routes:

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

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

Controller:

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');
    }   
}
  • 写回答

1条回答 默认 最新

  • dtq26360 2016-04-04 16:09
    关注

    Accidentally pulled old form from git, removed form method = "POST"

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起