Category: Laravel, api

Imagine being able to simply create a new project (we’ll use laravel for an example), run the command: Then automatically having testapp.test work in the browser and show your laravel site. This is what I created and it works beautifully. Laravel is my framework of choice, but you can tweak things to work for most things if you try.

If you can’t do this, then you may just need to add an extra step of adding testapp.test 127.0.0.1 to your hosts file on windows/mac etc. For me, I’m using dnsmasq, and my config looks something like: My NetworkManager config looks like: After these settings and making sure you have dnsmasq installed of course, just run: If you already have nginx installed, you should if you go to kgdjflkjdljgdlkj.test you should see the default nginx page if you have one or something like: Now for the nginx config.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners