Playing Next Lesson In
seconds

Easy Querying with Static Model Query Methods

In This Lesson

We'll learn what static methods are available on our Lucid Models to help us easily query records from our database. These methods offer a convenient query option compared to the query builder.

Created by
@tomgobich
Published

🕑 Chapters

00:00 - Intro / Setup
00:30 - Method Overview
02:18 - All & Serialization Behavior
03:46 - Find & FindOrFail
05:02 - FindBy & FindByOrFail
05:52 - First
06:08 - FindMany
07:10 - Outro

Join the Discussion 3 comments

Create a free account to join in on the discussion
  1. Hello @tomgobich. Thanks a lot for an amazing series. Really love Adonis and gathering knowledge for my next project. Please what's the next ideal series to follow on completing this one? Any pointers?

    1
    1. Responding to ismailomodara
      @tomgobich
      0
      1. Responding to tomgobich

        Awesome @tomgobich! Thank you very much! You are amazing

        1