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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners