Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gideeeh's avatar

Running Laravel Project Locally for Testing

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! πŸ™

0 likes
5 replies
Snapey's avatar

"best" depends on your platform

Herd is probably the best platform for mac and possibly for windows

gideeeh's avatar

@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

Snapey's avatar

@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.

Ben Taylor's avatar

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.

martinbean's avatar

@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).

Please or to participate in this conversation.