Laravel Herd

Documentation for macOS

Serving Sites

#
Serving Sites

Herd uses the concept of "parked" paths for serving sites.
Once a directory has been "parked" with Herd, all of the directories within that directory will be accessible in your web browser at http://<directory-name>.test.

By default, Herd will automatically park the ~/Herd directory for you. If you migrated from Valet, Herd will also serve sites from all of your parked Valet paths.

That's all there is to it. Now, any application you create within your "parked" directory will automatically be served using the http://<directory-name>.test convention. Herd supports a wide variety of individual drivers to automatically bootstrap your sites. These drivers support Laravel, but also many other frameworks and applications.

#
Via the CLI

If you prefer to use the CLI, you can use the herd park and herd link commands to park and link a path. These commands work the same way as the valet park and valet link commands. You can read more about them in the Valet documentation.

$ cd ~/Sites
$ herd park

#
Linking sites

You can point domains to directories that are either outside of your parked paths or that need additional domains, for example when working with domain based multi tenancy.

cd ~/project-directory
herd link admin-app
herd link tenant1
herd link tenant2

This allows accessing the accplication in the project-directory folder from admin-app.test, tenant1.test and tenant2.test