AdonisJS / Lucid

Lucid is AdonisJS' Object Relational Mapping (ORM). It's a first-party package that follows the active record pattern. With it you can easily perform CRUD operations, add database hooks, normalize data, and so much more.

Recently Released on Lucid

Logging User Actions
AdonisJS Quick Tip #18.0

How To Use AdonisJS Model Hooks To Log All User Actions

AdonisJS Filter Form Handler
HTMX & AdonisJS Filters #3.0

Defining Our AdonisJS Filter Form Handler

HTMX & AdonisJS Filters #2.0

Creating Our Filter Query with AdonisJS

AdonisJS Model Query Builder Macro Favorites
AdonisJS Quick Tip #16.0

Exploring My Favorite AdonisJS Model Query Builder Macros: Tips and Examples

Static Model Query Methods
Let's Learn AdonisJS 5 #5.9

Easy Querying with Static Model Query Methods

Model Hook Overview
Let's Learn AdonisJS 5 #5.8

Password Hashing & Model Hook Overview

AdonisJS Creating Records
Let's Learn AdonisJS 5 #5.7

Creating Records with Lucid ORM

AdonisJS Model Relationships
Let's Learn AdonisJS 5 #5.6

Defining Model Relationships

Default Team
Let's Build A Changelog App #4.0

Creating Teams & Setting Default Team

Migration to Model
Let's Learn AdonisJS 5 #5.5

Database Migrations To Lucid Models

Schema to Migration
Let's Learn AdonisJS 5 #5.4

Database Schema to Migration

What is a model?
Let's Learn AdonisJS 5 #5.3

What Is A Model?

Altering Database Tables with Migrations
Let's Learn AdonisJS 5 #5.2

What To Know Before Altering Your Database with Migrations

AdonisJS Migrations & Their Flow
Let's Learn AdonisJS 5 #5.1

Migrations & Understanding the Flow of Migrations

Introducing the Lucid ORM
Let's Learn AdonisJS 5 #5.0

Introducing, Installing, and Configuring Lucid ORM

AdonisJS in 15 #2.0

How To Do Multi Model Authentication with AdonisJS and Lucid ORM

Let's Build with AdonisJS #1.9

Comment Likes & Unlikes

AdonisJS Quick Tip #7.0

How To Add A Custom Method to the Model Query Builder in AdonisJS

Let's Build with AdonisJS #1.6

Building A Comment System

AdonisJS Quick Tip #5.0

How To Serialize All AdonisJS Lucid Model Properties As Camel Case

AdonisJS in 15 #1.0

AdonisJS Authentication in 15 Minutes

Let's Build with AdonisJS #1.5

Rebuilding Jagr.Co, Adding Posts & SubCollections to Collections

Let's Build with AdonisJS #1.4

Rebuilding Jagr.Co, Post, Collection, & Taxonomy Models

Let's Build with AdonisJS #1.2

Rebuilding Jagr.Co, Password Reset & Account Locking

Let's Build with AdonisJS #1.1

Rebuilding Jagr.Co, Username Sign In & Post CRUD

AdonisJS Quick Tip #1.0

Getting Data by the User's Timezone with Luxon's DateTime

Let's Build with AdonisJS #1.0

Rebuilding Jagr.Co, Start & Auth

AdonisJS 5 Infinite Load #1.0

Project Setup & Creating Dummy Data

Let's Learn AdonisJS 5 Preview #14.0

Let's Learn Adonis 5: Writing Reusable Queries with Query Scopes

Let's Learn AdonisJS 5 Preview #13.0

Let's Learn Adonis 5: Querying, Checking Existence, and Aggregating Relationships

Let's Learn AdonisJS 5 Preview #12.0

Let's Learn Adonis 5: The Query Builder

Let's Learn AdonisJS 5 Preview #11.0

Let's Learn Adonis 5: Creating Data & Relationships Records

Let's Learn AdonisJS 5 Preview #10.0

Let's Learn Adonis 5: Intro to Creating, Reading, Updating, and Deleting (CRUD)

Let's Learn AdonisJS 5 Preview #9.0

Let's Learn Adonis 5: Defining Model Relationships

Let's Learn AdonisJS 5 Preview #8.0

Let's Learn Adonis 5: Intro to Models

Let's Learn AdonisJS 5 Preview #5.0

Let's Learn Adonis 5: Installing and Configuring Lucid