> ## Documentation Index
> Fetch the complete documentation index at: https://herd.laravel.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tinker

# Launching Tinker

Laravel Tinker is a REPL for Laravel, and it allows you to interact with your application via the command line. While you usually start it via the terminal by running `php artisan tinker` or `herd tinker`, Herd provides a convenient button in the actions column in the sites settings as well as a global shortcut that instantly opens the active project automatically.

<Note>
  Herd integrates natively with [Tinkerwell](https://tinkerwell.app) and gives you a fantastic tinker experience with multi-line code editing, autocompletion, and SSH access to your applications.
</Note>

## Open Tinker from the site settings

You can run the Tinker site action from the [Site Manager](/macos/sites/managing-sites) to start a new tinker or Tinkerwell session directly in your site.

<Frame>
  <img alt="Tinker button in the site manager" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/sites_actions_tinker.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=764428860a4ff3a27c6a190cd356beb7" width="1872" height="1122" data-path="images/docs/sites_actions_tinker.png" />
</Frame>

## Open Tinker with a global shortcut

Herd allows you to define global system shortcuts and Tinker is part of this configuration. By pressing the global tinker shortcut, Herd starts a tinker session for the last site that you visited via your browser.

<Frame>
  <img alt="Tinker Shortcut Settings" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/settings_shortcuts_tinker.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=ce4b61afb1f57650423bb4896fa47c65" width="1460" height="1102" data-path="images/docs/settings_shortcuts_tinker.png" />
</Frame>

# Tinkerwell Integration

[Tinkerwell](https://tinkerwell.app) users benefit from the deep integration between both tools, so if you are running `herd tinker`, click the button in the site settings or press the global shortcut and Herd detects Tinkerwell on your machine, Tinkerwell opens a new tab with the most recent Herd project automatically.

This allows you to quickly iterate on complex Eloquent queries or debug some code. It also provides autocompletion and a familiar multi-line code editor experience that goes beyond a simple REPL.

<Frame>
  <a href="https://tinkerwell.app">
    <img alt="Tinkerwell with a complex Eloquent query" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/tinker-tinkerwell.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=d5e8cb39e5b93c1eef9b80e6034a02e5" width="2618" height="1720" data-path="images/docs/tinker-tinkerwell.png" />
  </a>
</Frame>

Tinkerwell ships with support for all of Herds PHP versions and automatically loads the correct configuration files.
