0
與區域前綴在Laravel 5.4後,我想與基地前綴區域url.When我運行PHP的工匠擔任然後我得到路線NotFoundHttpException在Laravel
notfoundhttpexception
。它工作,如果我把手動http://localhost:8000/en。我現在想要什麼,當我將運行PHP的工匠服務它應該重定向到http://localhost:8000/en。
以下是路線文件:
Route::group(['prefix' => App::getLocale() ], function()
{
Route::get('/', array('as' => 'home.index', 'uses' => '[email protected]'));
});