This post is from the professional Laravel developer community, original link: learnku.com/laravel/t/3…

Laravel Web Tinker is an extension package developed by @spatie_be to run the Laravel Tinker REPL (interactive interpreter) in the browser:

Artisan’s Tinker command isa great tool for modifying your program in the terminal. Unfortunately, executing small pieces of code, making changes, and copying/pasting can be cumbersome. Wouldn’t it be a good idea to implement Tinker in the browser?

This extension pack will add a route to your application for tinker input.

Admittedly, I was skeptical of the bag at first. However, one feature of the package that really stood out to me was the ability to easily write out multiple lines of code before execution (which was a pain in the CLI version) :

This tool allows you to repeatedly use the Command + Enter key to execute tinker, get feedback and continue to execute code.

As mentioned in the READme, you should not use this package in production or any other environment that uses real world data.

You can check out more about the package, complete installation guide, and the source code on GitHub spatie/laravel-web-tinker.