Minor routing issue
-
Hello all. First time post. And fairly new to both Laragon and Laravel. Thanks for having me.
I installed Laragon on my Windows 10 machine. Everthing is working fine. I created a Laravel instance that I placed in this folder: c:\laragon\www\notebookapp
Navigating to localhost gives me the Laragon welcome page, and entering http://localhost/notebookapp/public serves up the default Laravel welcome page.
If I add a simple route to web.php that reads as follows:
Route::get('about', function() {
return 'About Us';
});I then navigate to http://localhost/notebookapp/public/about where I am greeted with:
404 Not Found - nginx/1.10.1
However, launching php artisan serve renders the "about" page properly.
Your time and assistance would be greatly appreciated.
Thank you
Peter
-
@peterbata : With Laragon, you just use:
-
My goodness. It was that simple. I can't believe that I tried so many combinations, except that one of course. Many thanks. Greatly appreciated. Peter
-
Haha, you forgot the feature that makes Laragon special
Enjoy programming!
-
You got that right !!
Have a great evening.
Oh, and yes, Laragon is truly special.