Tinkerwell supports fantastic autocompletion for many classes out of the box and if you use it on Laravel helpers or initialize classes directly, there is no need for additional steps to make it work. But sometimes Tinkerwell can't detect which class you are using in your code and does not provide the autocompletion experience that you love. In this case, it makes sense to manually add a type-hinting comment to that line and enable autocompletion. So if you use Tinkerwell with Laravel and simply load a user from the database via Eloquent, autocompletion might not work directly.

Simply add the reference to the class as a comment and autocompletion works again.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners