The Craft 6 beta is out. Learn what's new and how Craft 6 works on Laravel. Explore Craft 6

Using craft.query() for a Custom Query

Learn how to set up a custom query in Craft to fetch data from any table in the database (even non-Craft tables).

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch. A CraftQuest Premium feature.

Sign up for Premium