Unread Notifications

Latest Notifications

No Notifications

You're all set! Start a discussion by leaving a comment on a lesson or replying to an existing comment.

Let's Learn AdonisJS 5

Defining Model Relationships

In this lesson, we'll learn how to define relationships on our Lucid Models. We'll cover one-to-one, many-to-one, one-to-many, and many-to-many relationship definitions.

View Lesson

Latest Content

View all lessons
Let's Build A Changelog App / Lesson 5.0

Team / User Management

In this stream, we'll add the ability for admins to invite others to their team. They'll be able to either invite them as a member or another admin.

AdonisJS Quick Tip / Lesson 14.0

Remember Me in AdonisJS Authentication

In this lesson, we'll take a look at how to remember the user's authentication session in AdonisJS Auth. We'll learn how to define the remember me checkbox within our form and more.

Let's Build A Changelog App / Lesson 4.0

Creating Teams & Setting Default Team

In this stream, we'll be adding the ability to create new teams, set the default team for a user when they switch between teams, and auto-forward users to their default team after login.

Let's Learn AdonisJS 5 / Lesson 5.5

Database Migrations To Lucid Models

In this lesson, we'll walk through examples of transferring our database migrations into our Lucid Models. This will pave the way for us to begin CRUD operations in later lessons.

Let's Learn AdonisJS 5 / Lesson 5.4

Database Schema to Migration

In this lesson, we'll walk through a real-world example of a database schema and how to create migrations. We'll define each table's columns, primary keys, and foreign keys.

Let's Learn AdonisJS 5 / Lesson 5.3

What Is A Model?

In this lesson, we'll delve into AdonisJS Models learning what they are, what they represent, how to create them, what we can do with them, and more.

AdonisJS Quick Tip / Lesson 13.0

How To Redirect Back to the Previous Page After Login with AdonisJS

In this lesson, we'll learn an easy way we can redirect our user's back to their original page after they login or register in an AdonisJS application.

Let's Build A Changelog App / Lesson 3.0

Project CRUD

In this stream, we'll be defining our starting projects table schema, model, and setting up create, read, update, and delete (CRUD) operations for it.

Let's Build A Changelog App / Lesson 2.0

Creating A Default Team After Sign Up

In this stream, we'll create a default team for users after signing up for our changelog application. After signing up, we'll take the user to a screen where they can update details on their default team.

AdonisJS Quick Tip / Lesson 12.0

Minify Your AdonisJS HTML in 5 Minutes

We'll learn how we can alter all our AdonisJS HTML response bodies using a simple global middleware to add HTML minification.

View All Lessons

Want A Monthly Roundup of the Newest Lessons?

Sign up for our Adocasts Roundup newsletter! It's sent monthly and contains the a roundup of all the latest Adocasts lessons.