Database

Lucid

9 Series
133 Lessons
36h 14m

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.

Series.

Snippets.

Lessons.

Video preview
Adocasts Plus Exclusive
Exclusive
Account Deletion & Deleting Dangling Organizations

Account Deletion & Cleaning Dangling Organizations

In this lesson, we'll add the ability for our user's to delete their accounts. During account deletion, we'll also delete any organization's this user is the only member of, keeping them from dangling inside our database without users.

Video preview
Adocasts Plus Exclusive
Exclusive
Safely Updating the User's Email

Allowing Users to Safely Update Their Account Email

In this lesson, we'll add the ability for our users to safely update their account email address. We'll require them to confirm their password, then make the update in our database and log it to the user's email histories.

Video preview
Adocasts Plus Exclusive
Free in 9 hours
New Unique & Exists Overloads
AdonisJS Quick Tip #22.0
・
Jan 07

New Unique & Exist Validation Overloads in AdonisJS 6

In this lesson, we'll cover the new overload option recently added to Lucid's VineJS unique and exists rules allowing for a simplified usage for common use-cases.

Video preview
Adocasts Plus Exclusive
Exclusive
Storing Lesson Reordering
Building with AdonisJS & Inertia #9.7
・
Dec 20, 24

Storing Lesson Order Changes & Handling Cross-Module Drag & Drops

In this lesson, save the changes made to lessons inside a course when a user uses drag-and-drop to move a lesson. Users can change the lesson order inside a single module or move a lesson into a new module, so we'll need to handle both use cases.

Video preview
Adocasts Plus Exclusive
Exclusive
Storing Module Reordering
Building with AdonisJS & Inertia #9.6
・
Dec 20, 24

Storing Module Order Changes from Vue Draggable

In this lesson, we'll persist sort order changes to the database when dragging and dropping a course's modules using Vue Draggable

Video preview
Adocasts Plus Exclusive
Exclusive
Lesson & Module Tag Selector
Building with AdonisJS & Inertia #9.5
・
Dec 20, 24

Patching Tag Changes for our Modules & Lessons

In this lesson, we’ll incorporate our Tag Selector component into our modules and lessons to facilitate easy visibility and updates of their statuses and access levels.

Video preview
Adocasts Plus Exclusive
Exclusive
Editing & Deleting Lessons
Building with AdonisJS & Inertia #9.3
・
Dec 13, 24

Editing & Deleting Course Lessons

In this lesson, we'll add the ability to edit and delete lessons from a course's module. When editing, we'll also decrement the order field for all lessons within the module after the lesson being deleted.

Video preview
Adocasts Plus Exclusive
Exclusive
Creating & Listing Course Lessons
Building with AdonisJS & Inertia #9.2
・
Dec 13, 24

Creating & Listing Sortable Course Lessons

In this lesson, we'll add the ability to create new lessons within a course's module. We'll then list the lessons within their designated module using the order specified by the user.

Video preview
Model Query Builder Macros in AdonisJS 6
AdonisJS Quick Tip #20.0
・
Dec 10, 24

Model Query Builder Macros in AdonisJS 6

In this lesson, we'll learn how we can add custom methods to the Model Query Builder with Lucid in AdonisJS 6 using macros.

Video preview
Adocasts Plus Exclusive
Exclusive
Course Module CRUD
Building with AdonisJS & Inertia #9.1
・
Dec 06, 24

Creating, Editing, & Deleting Course Modules

In this lesson, we'll add the ability to create, edit, and delete a course's modules using the reusable components and composables we've created in past lessons.

Video preview
Adocasts Plus Exclusive
Exclusive
Listing Sortable Course Modules
Building with AdonisJS & Inertia #9.0
・
Dec 06, 24

Querying & Listing Sortable Course Modules

In this lesson, we'll query and add a sortable list of a course's modules on the courses show page.

Video preview
Adocasts Plus Exclusive
Exclusive
Tag Selector Component
Building with AdonisJS & Inertia #8.5
・
Dec 02, 24

The Tag Selector

In this lesson, we'll define a reusable tag selector component that we'll use for our difficulties, access levels, and statuses. This component will accept props that will automatically send a patch request to our server to update values as they change.

Video preview
Adocasts Plus Exclusive
Exclusive
Showing Course Details
Building with AdonisJS & Inertia #8.4
・
Dec 02, 24

Showing A Course's Details

In this lesson, we'll add our courses show page, which will be in charge of displaying the course details along with its modules & lessons. In this lesson we'll lay the groundwork, then in the next module we'll add in our modules & lessons.

Video preview
Adocasts Plus Exclusive
Exclusive
Deleting Courses
Building with AdonisJS & Inertia #8.3
・
Dec 02, 24

Deleting Courses

In this lesson, we'll add the ability to delete courses from an organization with confirmation from our user.

Video preview
Adocasts Plus Exclusive
Exclusive
Editing & Updating Courses
Building with AdonisJS & Inertia #8.2
・
Nov 27, 24

Editing & Updating Courses

In this lesson, we'll add the ability to edit and update a course within the active organization.

Video preview
Adocasts Plus Exclusive
Exclusive
Building with AdonisJS & Inertia #8.1
・
Nov 27, 24

Creating A New Course

In this lesson, we'll add the ability to create a new course within the active organization.

Video preview
Adocasts Plus Exclusive
Exclusive
Querying & Listing Courses
Building with AdonisJS & Inertia #8.0
・
Nov 27, 24

Querying & Listing An Organization's Courses

In this lesson, we'll query the active organization's courses and list them out in a table.

Video preview
Adocasts Plus Exclusive
Exclusive
Drag & Drop Sorting
Building with AdonisJS & Inertia #7.5
・
Nov 22, 24

Sorting Difficulties with Drag & Drop

In this lesson, we'll allow our user's to customize the ordering of their difficulties via drag-and-drop using VueDraggable. When they commit a change by dropping an item, we'll persist the updated sort to our database.

Video preview
Adocasts Plus Exclusive
Exclusive
Deleted Replacement
Building with AdonisJS & Inertia #7.3
・
Nov 15, 24

Replacing A Course's Deleted Difficulty

In this lesson, we'll add the ability to gracefully handle instances where a required relationship's record is being deleted. When a difficulty is being used by a course, we'll have our users select a replacement difficulty for the one being deleted.

Video preview
Adocasts Plus Exclusive
Exclusive
Deleting Difficulties
Building with AdonisJS & Inertia #7.2
・
Nov 15, 24

Confirming & Deleting Difficulties

In this lesson, we'll add the ability to delete an organization's difficulties. We'll also make use of our ConfirmDeleteDialog component to confirm the deletion action with our user.

Showing 1 to 20 of 131 results