Let's Learn AdonisJS 6: Ep 11.3 - Allowing Admins to Create Movies

Опубликовано: 27 Июнь 2024
на канале: Adocasts
280
10

Learn how to allow admins to create movies

👍 If You Enjoy This Video, Consider Hitting The Like Button!

👨‍💻 Series Source Code: https://github.com/adocasts/lets-lear...

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...

Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing

In this lesson, we'll allow our administrators to create movies via our admin panel. We'll walk through getting the form set up, validated, and our movies created.

⏰ Timestamps
00:00 - Adding the Create Movie Button
00:38 - Defining All Resource Routes for Our Movies
02:24 - Planning Our Movie Create Fields
03:30 - Querying Select Options
03:56 - Defining Our Movie Create Page and Form
07:46 - Creating and Defining Our Movie Store Validator
10:06 - Creating An Exists Helper Validator Rule
11:50 - Finishing Our Movie Store Validator
13:15 - Validating Dates and Transforming to Luxon DateTime
14:02 - Validating and Storing our Movies
14:30 - Testing Our Movie Store Form

------------------------- Socials --------------------------

Website: https://adocasts.com
Threads: https://threads.net/@adocasts
Twitter:   / adocasts  
GitHub: https://github.com/adocasts