# Use Expose with Laravel Herd

Herd is a local development environment for PHP developers and while it's optimized for Laravel development, it works great with many popular applications and frameworks.

When you install Herd, it makes the `expose` command available in your PATH automatically, so you only need to connect your Expose account and you are ready to go.

Expose and Herd are both tools by [Beyond Code](https://beyondco.de) and so they have awareness of each other when both are installed.

## Setup

Open the Herd settings, go to the "Sharing" tab and click "Connect with Expose". Herd opens your browser, where you sign in to Expose or [create a free account](https://expose.dev/register) and authorize Herd. If you belong to several teams, you pick the team that Herd should use. Herd then stores your Expose token for you.

Once connected, the Sharing tab shows your Expose plan and lets you choose your default server and, with Expose Pro, your default domain.

![The Sharing settings in Laravel Herd for connecting an Expose account and choosing the default server](https://ws.expose.dev/img/docs/expose/img/laravel-herd-sharing.webp)

If you prefer the command line, you can also run [`expose login`](https://ws.expose.dev/docs/getting-started/authentication) in your terminal.

## Sharing sites

When using Herd with Expose, you can use the `herd share` command instead if running `expose`. This can detect custom URLs on your machine and automatically share the correct local URL of your working directory
