Question: Best Way to Test Laravel Project Locally
Hi everyone! π
I'm new to Laravel and recently got my project set up by following the documentation. Everything is working fine, but I'm curious if there's a better way to test a Laravel project locally other than using php artisan serve.
I would appreciate any tips or recommended practices for local testing and development. Thanks in advance for your help! π
@Snapey forgot to mention Im currently working on Windows. Im kinda deep into developing my project though, wouldnt it be a problem to move everything to herd? Btw, thanks for helping me out
@gideeeh Any solution should work with your code where it is. You don't need to move code for Herd.
But, that suggests to me that you are not using version control. Using a Git based version control is essential for any form of professional coding career.
If you had everything committed to version control, you would be far less concerned about moving things around.
I develop on windows. Herd definitely looks great, although probably use the pro version. I use laragon which I can also recommend. It is free and allows me to mimic my production server pretty well with nginx, ssl etc.
@gideeeh Well, if you want to actually test your application and how it would work in production, then you should be mirroring your production environment and the versions of software it has installed (so same PHP version, same extensions installed, etc). This is what Docker is for. Especially on Windows (as PHP applications are usually deployed to *nix-based hosts running something like Ubuntu rather than Windows).