mercredi 23 mars 2016

Can't use word 'error' in laravel route path?

I have a problem in laravel route study.If I defined a route like this:

Route::get('error/{name}',function($name){
    return "Sorry $name. Something is wrong with your account.";
});

Then I access it by localhost/error/john, browser said not found url.But if i change error to other word like 'wrong'.And I can access by `localhost/wrong/john'.So can anyone tell me what is wrong with my code?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire