Artisan Tinker in Vim with Tinkeray

Admin   Laravel   605  2022-08-05 23:30:02

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.

Source: laravel-news.com