Error loading routes in laravel

0
Route::get('foo', function (){
    return 'Hello World';
  });

This is the example of the official website of Laravel, but at the moment you do it I get it:

  

"Sorry, the page you are looking for could not be found."

I appreciate if you can help me with anything, thank you!

    
asked by Sergio CR 17.07.2018 в 20:08
source

1 answer

0

I think you have to modify the path to this form / foo

Route::get('/foo', function (){
  return 'Hello World';
});
    
answered by 09.08.2018 / 23:30
source