Can't get a simple route to work with Laravel 5.3
-
I have two routes in my web.php file.
Route::get('/', function () {
return view('welcome');
});
Route::get('/about', function () {
return 'About Page';
});
localhost:180 will display the welcome page just fine.
localhost:180/about gets a 404 Not Found error.
Is there a setting in Laragon that can affect the routes like this?
Using Laragon 2.1.5.
Dan
-
@drdan: Nope. Don't use localhost. With Laragon, you can avoid errors like that:
Suppose you have www/yourapp
You should use:yourapp.dev:180/about
-
@drdan: Is your issued sorted?
If yes, please confirm so I can mark as "Solved".
This is necessary because it will help others.
-
Thanks for the help. I sorted this out. I started over and created my project in the /www directory with Auto Virutal Hosts enabled. Then I used the format of myappname.dev:8080/about and it worked as expected.