Home > Software design >  Laravel routes dont show
Laravel routes dont show

Time:01-30

I am completely new to laravel, so I think my question is a bit ridiculous. I tried to create a route in the routes/web.php

Route::get('/example', function () {
Return  ('hello');
)};

But when I try to see the example page, I receive 404. I use php artisan serve to load the local host. I couldn't find a solution relatable to my situation. Still no luck. Windows version 8.1 Laravel version 8 Also I can't edit

Route::get('/', function () {
Return view  ('welcome');
});

The changes won't apply Thank you

CodePudding user response:

You can type php artisan route:list to see if the route saved or not, if not you can write php artisan optimize:clear

CodePudding user response:

you must use:

php artisan:serve

then

your_app_url/example
  •  Tags:  
  • Related