If you are using Mac or Windows I recommend using Laravel Herd, and if you are using Linux https://herd.laravel.com/
They don't officially support Linux (as far as I know) but check this guide
https://medium.com/@emmaw4430/laravel-herd-for-linux-all-you-need-to-know-e0c680d8a400
Or try Valet for linux
https://github.com/cpriego/valet-linux
If you want to roll your own, I suggest this guide.
https://www.howtoforge.com/how-to-install-laravel-framework-with-nginx-on-ubuntu-22-04/