Now I see the whole picture. I went into Preferences and I changed the Document Root setting to reflect the directory that I am using. I created another new project and once I reset the servers it works just fine.
Posts made by drdan
RE: 404 not found [solved]
Found the problem. You were right about checking sites-enabled.
The root was set to "C:/laragon/www/". I have my projects stored in a different directory. I am surprised it doesn't use that directory since that is were the files are being created.
Glad to have a solution. Thanks for your help.
404 not found [solved]
I just created a new project with Laravel 5.6. It completed without errors. When I tried to load it locally through Laravel Menu > www > ProjectName it comes up with this 404 not found error. All my other Projects are still coming up fine. Never had an issue with this before.
Really appreciate some help with this.
RE: PHP date function giving wrong time [solved]
Thanks guys. You both hit on my problems.
'timezone' => 'America/Toronto'in the config/app.php file was the solution.
I didn't mention it but the time was also off by a fraction of an hour rather than exactly 4 hours. This was caused by using m for minutes in the date function rather than i. Thus I was displaying the month not the minutes.
It is all good now. Thanks again.
PHP date function giving wrong time [solved]
I can't get the PHP date function to give me the proper time. It is always a 4 hours and ahead.
I have set the date.timezone = "America/Toronto" and phpinfo() shows that it is set to that. The default timezone is set to UTC and I don't know how to change that as there isn't a variable for it in php.ini file.
This isn't just happening with Laragon it is also happening on my server. Laragon is running PHP 7.1 and my server is 7.2. I am using php-fpm on my server. I am not sure what Laragon uses.
Using nginx on my server and Laragon shows both Apache and Ngnix when starting.
RE: Installed Laragon with Nginx full but it generates errors on Start All
Thanks for the help. The problem is definitely that port 80 is in use. I have switched to port 8080 which is an acceptable alternative I have read. I am planning replacing my hard drive soon which will require a re-installation of Windows so I might not bother to locate what service is using port 80. Thanks for all the help.
RE: Can't get a simple route to work with Laravel 5.3
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.