【发布时间】:2014-08-14 13:14:58
【问题描述】:
我已经声明了一个 POST ROUTE:
Route::post('sessions', [
'as' => 'sessions.store',
'uses' => 'UserAuthenticationController@store'
]);
当我访问 www.domainname.com/sessions 时,它会生成 MethodNotAllowedHttpException。
我正在尝试使用以下方法处理所有丢失的路线:
/global.php/
App::missing(function($exception) {
return View::make('exceptions.404');
});
当我没有为(会话)声明任何 GET ROUTE 时,我无法弄清楚为什么会生成此异常。
谢谢
【问题讨论】:
标签: php laravel laravel-4 laravel-routing