I have laravel on localhost/laravel/public. I am trying set routes but this always generate 404 error on url localhost/laravel/public/user/John/[email protected]:
Route::get('user/{name}/{mail}', function($name, $mail)
{
return "User $name : $mail";
});
and this work on url localhost/laravel/public/test/John/[email protected]
Route::get('test/(:any)/(:any)', function($name, $mail)
{
return "Test $name : $mail";
});