Tinker with your variables while working on your Laravel application
This package will give you a tinker server, that collects all your
tinkercall outputs and allows you to interact with the variables on the fly.
This package was built as part of my PHP Package Development video course. Register for the course to learn how this package was built.
You can install the package via composer:
composer require beyondcode/laravel-tinker-server
The package will register itself automatically.
Optionally you can publish the package configuration using:
php artisan vendor:publish --provider=BeyondCode\\LaravelTinkerServer\\LaravelTinkerServerServiceProvider
This will publish a file called
In the config file, you can specify the dump server host that you want to listen on, in case you want to change the default value.
Start the tinker server by calling the artisan command:
php artisan tinker-server
And then you can put
tinkercalls in your methods to dump variable content as well as instantly making them available in an interactive REPL shell.
$user = App\User::find(1);
In addition to the
tinkermethod, there is also a
tdmethod, that behaves similar to
dd. It tinkers the variable and dies the current request.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.