Laravel Herd

Documentation for macOS

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 and a global shortcut that directly opens the active project automatically.

#
Open Tinker from the site settings

Tinker button in the sites settings

#
Open Tinker with a global shortcut

Tinker button in the sites settings

#
Tinkerwell Integration

Tinkerwell 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 interate on some more complex Eloquent query or debug some code but also provides autocompletion and a normal multi-line code editor experience that goes beyond a normal REPL.

Tinkerwell with a complex Eloquent query