Tinker is a well-known tool in the PHP and Laravel world. It executes PHP code on the fly and shows you the results. Devisto provides an integrated Tinker that executes code for the current project. Click Tinker in the left hand side navigation to activate it.

When building projects in Devisto, you will find yourself using Tinker a lot, because it's a very quick way to test things out or to debug your code.

A Note On Translatable Data

When you're dealing with translatable data, it's important to know that the first language is always active in your Tinker session. When you want to test in another language, you can change it with app()->setLocale():

$product = table('products')->first();

// Will give me the title in my first language

// Will give me the Dutch title
Previous topic
← Meta Data
Next topic
Log →