Can't get a simple route to work with Laravel 5.3

  • | 2407 points

    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.


  • administrators
    | 131225 points

    @drdan: Nope. Don't use localhost. With Laragon, you can avoid errors like that:

    Suppose you have www/yourapp
    You should use:

  • administrators
    | 131225 points

    @drdan: Is your issued sorted?
    If yes, please confirm so I can mark as "Solved".
    This is necessary because it will help others.

  • | 2407 points

    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 and it worked as expected.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.