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');
}
}