mardi 2 août 2016

Why is my route in Laravel returning a 404 error?

So in my routes.php file I have this:

Route::get('contact', function() {
   return view('contact');
});

When I go to domain.com/contact I get a return error. However when I put:

Route::get('/', function() {
    return view('contact');
});

and go to domain.com the page appears. Any idea what could be causing this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire