Building with AdonisJS & Inertia #9.1

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.

Created by
@tomgobich
Published

Small Note

Within our StoreModule action, we discuss how we're querying through our organization to get the desired course via it's courseId as a way to verify the courseId belongs to the organization. We're also then using that queried course to create the module.

While this works great, I wanted to also mention that you can directly validate your route parameters inside your VineJS Validations in case you'd prefer to do that instead.

As always, if you have any questions on this, feel free to ask in the comments below!

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!