I know this error and it is a routing error but I copy and pasted the route six times and three work and three don't.
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');
The tree causing me problems are mexico, fareast, and europe.
Below is the controller page
/**
* 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');
}
I just don't understand because they all look the same they should work the same.
Here is one of the broken view pages:
<h1>Reps & Distributors</h1>
<h3>Mexico</h3>
<h4>Distributors</h4>
Here is the link:
<p><a href="/reps-distibutors/mexico">Mexico</a></p>
reps/mexico? - lowerendsreps-distibutorsin the link (missing ans) instead ofreps-distributors. - lowerends