// docs

Local project connections

Run snippets against a Laravel project folder on your machine.

Use a local project connection when the Laravel app boots directly on your machine. This works well for plain local apps, Herd, Valet, and any setup where your host PHP can run Artisan from the app directory.

  1. Open Connections.
  2. Choose Local project.
  3. Select the Laravel project folder.
  4. Choose the environment label.
  5. Test the connection.
  6. Use the connection from Run Code or Benchmark.

What LaraBench runs

For snippets, LaraBench runs code through Laravel rather than as isolated PHP. That means your service container, models, config, database connections, and helpers are available in the same context your app uses.

Connections keep the project path, connection type, and environment label visible before you run anything.