Laravel,路线

这是我简单的路线文件:

Route::get('/', function()
{
    return View::make('hello');
});


Route::get('results',array('uses'=>'AutonomoController@mostrarAutonomos'));

我输入Public / results url,他返回一个错误:“糟糕,看起来出了问题 . ”

如果我将“结果”路由更改为“/”工作正常 .

我有/结果错误,“找不到”,但我读到必须激活mod_rewriter,但是当我激活它时,结果是其他错误 .

当活动调试模式时,错误是:Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

if (!is_null($route)) {
            return $route->bind($request);
        }
        $others = $this->checkForAlternateVerbs($request);
        if (count($others) > 0) {
            return $this->getOtherMethodsRoute($request, $others);
        }
        throw new NotFoundHttpException(); 
    }
    protected function checkForAlternateVerbs($request)

回答(0)