Artisan Tinker in Vim with Tinkeray

Developer Tools

July 29th, 2022

laravel-tinkeray.png

Vim Tinkeray is a plugin that adds Artisan tinker support to Vim with output in Ray, the desktop debugger app by Spatie. This works by installing a Vim plugin and Laravel Ray in your project.

While working in Vim, you can run TinkerayOpen to open a tinkeray.php file in your project. When you save the tinkeray.php file, you should see the returned output in the Ray desktop app:

Tinkeray example

Tinkeray also supports Laravel Sail; check out the Laravel Sail Tinkeray setup in the readme. You can learn more about this plugin, get setup instructions, and view the source code on GitHub at jesseleite/vim-tinkeray.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.

Laravel News Partners