Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #11.4

Allowing Admins to Update Movies and Clear Values

In This Lesson

We'll recreate our movie form for the purpose of updating our movies. We'll also add the ability to clear values and discuss the difference between VineJS' optional and nullable chain options.

Created by
@tomgobich
Published

🕰️ Chapters
00:00 - Setting Up Our Edit Page
00:50 - Creating MovieService getFormOptions Method
02:20 - Querying Our Movie for Editing
02:46 - Changing Our Edit Page Text
03:26 - Setting Default Values from our Movie
05:35 - Adding An Edit Link on our Admin Movie Table
06:02 - Testing Our Edit Page's Default Values
06:25 - Debugging Our Released At Value
08:00 - Validating and Updating Our Movie
09:26 - Testing Our Movie Update
10:06 - Clearing Our Empty Values
11:20 - Transforming Values for Not Nullable, Default Values

Join the Discussion 2 comments

Create a free account to join in on the discussion
  1. There's some kind of error with this lesson video player.

    1
    1. Responding to luis-oliveira
      @tomgobich

      Sorry about that, Luis, and thank you for the heads up! Should be all fixed now!

      0