Php 正在获取Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Php 正在获取Symfony\Component\HttpKernel\Exception\NotFoundHttpException,php,symfony,laravel,hyperlink,laravel-routing,Php,Symfony,Laravel,Hyperlink,Laravel Routing,我知道这个错误,这是一个路由错误,但我复制并粘贴了六次路由,三次有效,三次无效 Route::get('/reps-distributors', 'PagesController@reps'); Route::get('/reps-distributors/usa', 'PagesController@repsUSA'); Route::get('/reps-distributors/netherlands', 'PagesController@repsNetherlands'); Route:

我知道这个错误,这是一个路由错误,但我复制并粘贴了六次路由,三次有效,三次无效

Route::get('/reps-distributors', 'PagesController@reps');
Route::get('/reps-distributors/usa', 'PagesController@repsUSA');
Route::get('/reps-distributors/netherlands', 'PagesController@repsNetherlands');
Route::get('/reps-distributors/middleeast', 'PagesController@repsMiddleEast');
Route::get('/reps-distributors/mexico', 'PagesController@repsMexico');
Route::get('/reps-distributors/fareast', 'PagesController@repsFarEast');
Route::get('/reps-distributors/europe', 'PagesController@repsEurope');
给我带来麻烦的是墨西哥、远东和欧洲

下面是控制器页面

 /**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function reps()
{
    return View::make('reps');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsUSA()
{
    return View::make('reps/usa');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsNetherlands()
{
    return View::make('reps/netherlands');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsMiddleEast()
{
    return View::make('reps/middleeast');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsMexico()
{
    return View::make('reps/mexico');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsFarEast()
{
    return View::make('reps/fareast');

}

/**
 * Show the reps-distributors page
 *
 * @return Response
 */
public function repsEurope()
{
    return View::make('reps/europe');

}
我只是不明白,因为它们看起来都一样,它们应该是一样的

以下是一个损坏的视图页面:

<h1>Reps &amp; Distributors</h1>

<h3>Mexico</h3>

<h4>Distributors</h4>
Reps&;分销商
墨西哥
分销商
以下是链接:

<p><a href="/reps-distibutors/mexico">Mexico</a></p>


您的链接中有一个输入错误。而不是

<p><a href="/reps-distibutors/mexico">Mexico</a></p>

你需要写作

<p><a href="/reps-distributors/mexico">Mexico</a></p>


视图文件中一定有错误。你能发布查看
reps/mexico
的代码吗;分销商墨西哥分销商您可以将完整的代码粘贴到您的问题中吗?当然很抱歉。您的问题可能是输入错误,但您的链接中有
reps distributor
(缺少
s
),而不是
reps distributor