Documentation
Tinker REPL
Interact with your console application from an interactive shell
On this page
Introduction#
Tinker is a powerful REPL, powered by the PsySH package. It allows you to interact with your entire application on the command line, including your Eloquent models, jobs, events, and services.
Tinker is made available to Laravel Zero applications by Jorge González through the intonate/tinker-zero package.
Installation#
You may install Tinker via Composer:
composer require intonate/tinker-zero
Since Laravel Zero does not use package auto-discovery, you should then register the package's service provider within your application's bootstrap/providers.php file:
return [ App\Providers\AppServiceProvider::class, Intonate\TinkerZero\TinkerZeroServiceProvider::class, ];
Usage#
To enter the Tinker environment, run the tinker Artisan command:
php application tinker
Further details, including how to hide the command from your application's list of commands, are available in the package's documentation.
Spotted a mistake? Edit this page on GitHub.