Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #10.1

Using Dependency Injection to Update A User's Profile

In This Lesson

We'll learn how to allow users to edit their profiles. We'll also cover how we can inject the HttpContext into a service instance using Dependency Injection (DI).

Created by
@tomgobich
Published

🕰️ Chapters
00:00 - Defining Our Profile Edit Page
00:50 - Adding Textarea Support To Our Form Input Component
01:27 - Defining Our Profile Edit Form Fields
02:45 - Profiles Update PUT Route Definition
03:20 - Defining Our Profiles Update Validator
05:07 - Accessing HttpContext Within Our Service Using Dependency Injection
07:11 - Injecting Our Service Into Our Controller Using Dependency Injection
08:20 - Updating The User's Profile
09:14 - Spoofing PUT Request
09:30 - Testing Our Profile Update

Join the Discussion 0 comments

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

Be the first to comment!