Hello, friend, welcome back.
You know, previous video here, we successfully get our authenticated user username and password so
successfully getting that authenticated user Amanda name right there in the name and the email.
So now in this video, I want to discuss about how you can update this so you can type data.
They have also on the form.
If you go our update profile here, you can see the results of the action form as a result.
So no one to do and to create one of the look for this one.
And I just need me to update the user profile.
At this step up on the road, I want to create a to create it now go through and also you can see that
both metal and also on the.
So now I copy.
I copy this.
And that will be the most metal, not the metal.
So I hope you already understand that part so that we as it user profile our user, our bit profile
and then update this type of on the wall.
And then here I have already put that out so I will be as a user of that user profile.
So now on top of it, that will be our name as an update user profile and then not James password on
the on of the method as a user or object profile.
OK, so this type of one of the method I want to create more JS password controller I to change password
controller.
And here after this, after this I take another one as a public and then function and then our map.
So there is a method.
So this is the method as opposed to the post method.
As I told you, for a lot of the time, you have to we have to add that as a request.
And the requests, along with that other request, a request and then request, that would be another
request.
Perfect.
And after that, what exactly you have to do?
First of all, we have to get our find out a specific our authenticated user data.
Right.
So that's what we just like.
That's simple.
So here I want to do I want to add on the variable I name named as user and then with our user model,
with this user model and find out to find out what the find authenticated user the user is already.
So this authenticated user ID I want to get.
Right.
So that will be it, just like the person before.
So here I get our specific find out that is authenticated, user authenticated user ID.
I want to get it and take the things with this variable.
So now here we have to do, we have to update it.
That is that is actually our this authenticated user ID and then there is an email address.
So no.
To go with this idea to update it.
So here I want bu I don't get the information on that on the condition if they have any user data or
to have any user data.
Now we have to update that field.
So now with this user, with this user, I want to do want to pass our name.
OK, that means that will be as our database will name our database freedom for this user as a name
and then that email right there that we are feeding them.
So now to do and add that our name and also our requested data, that means what the data actually positive
from our this update profile.
So here that is our input filename.
I have named as the same as a name.
Right.
So that will be our requested data.
So here I want to add that already because the data so that will be the main pathic.
And also we have to do the same things.
We have to do the same things for the user and this user, our database to name our database for name
as the email address that the email and email, and then it should be our request.
So our requested field, our requested for the email.
I have already admitted that part of the name, I name it as email.
So now that will be our email and I hope is very much clear to you.
And after that I want to do to save this data that means this user, this user data.
I want to go to save it.
So here I simply save it.
And after that save here, I want to return to the.
If one returned to another place, you can return to the damage so quickly, I want to make it at the
same pace, so the same Bisbee's of that base right here on going to return and the redirect.
We tend to redirect and then I want to look to the back base that will be at the back base and else
you can also have something else else else, which will be the same as we've done and redirect we've
done redirect to the back base backwards.
So if you want to have some of the message, you can also add this type of message without the text
message that your profile is updated.
So you can also do that better.
I do it OK.
If you want to add this type of the message, then what exactly happened?
Do you have to absorb the message of that means after the back here and they add all the weight with
some of the success message, that is the success of success.
And then I think, friend, you already know that concept, right?
So that the user profile is updated successfully.
So this type of the message is to be displayed in all these back.
That means our updated profile.
So here I want to do after this, OK, after this user profile here visible that Massie's options,
if visible that message, will be alerted to this message that somebody copied from our brand index.
I have used a lot of the time.
So here we display this message.
Perfect application, Savol.
So that's all you have to do.
OK, so you need to be safe then it'll be the back page with some of the text message or else it should
be as a return to the back base.
OK, so that's all that is lower and and or else perfect thing to disable.
Now go to our site, refresh.
So now we don't update that name as a Cawsey one and also make it as an update.
That email address is the one at the original dot com.
The update.
Yes, you can see how successful updated that is, our message is visible user profile is updated successfully.
So now our user name is updated, our email address is updated, and which user is already locked?
And you can see is also updated on here is also admitted that e-mail address.
Right.
And if you go our database and if you can visit, browse because the name is updated and email is updated.
And also there is another option for the profile photo.
Right.
So that is your task.
OK, so that is your tax to add.
That is you have to do have add the same concept here to be able to display our current user profile
picture.
That means that is our profile picture.
And also here, if you want updated, you can hold that things exactly you have to do.
I think you already know about it because we did the same thing a lot of the time with the slider.
We did it for the portfolio.
We did and for the brand also.
I discuss about that things with you so that it will be the same concept here.
All you have to do, I have already discussed about the functionality, how we get that appropriate
authenticated user I that only you have to you have to add another field.
So that will be another field as a user and it'll be your database will end up in this field into this
area here.
You have to update it.
Right.
So that's the things I hope at particular that position you should know about it.
So let's try this.
So that is your task.
If you face any issues, just let me know about it.
I'm here to help you so often here we successfully complete this part.
That piece are right now.
You can actually change that passwords.
But I want to do I'm perfectly happy with that game because the refresh and the Karzai and then submitted
that email address as an admin update now consist also updated again.
So now also it's updated.
So from here, we successfully complete our user, my profile, so now that is a profile, which user
is locking this user name and the email address is visible if you want to change that password, so
can change the password.
I have already discussed about the things we do.
So that is the main concept for any side.
Make it as a dynamic.
Right.
So right now that is actually perfect.
So our site is not totally dynamic.
So everything is dynamic.
So you can actually manage everything from your back and you want to make it as a dynamic.
I think you can also know how the things exactly you have to do for this.
So that's all.
So that's all for our this fundamental series.
And also get to add another veteran to add another battle for the Lockington Lexus or this is a logging.
Right.
So you can to access it better and to do that work.
So that is actually our funding into the funding menu.
So now go to our fanda.
And so that is our that is our admin positions right now.
We don't need this.
I mean, that is levels also the body.
The body that is our header.
Right.
So that the header I want to go on to create the one I copied and pasted.
So there s will be as a log out.
Right.
That will be a locking out.
So there is a default out for the logging because of all here.
If you want to access that logging, we have to do that logging.
Right.
So that will be as a redacted to particular that base.
So here I added as a logging logging so that we as a logging perfect life, if we can get the same,
will now go outside.
Because the refresh.
Yeah, that is another one as a log.
So if you click at the right moment to be redacted, because right now I'm already logging.
So if you log out so that logging pays now go to our home base.
That is our home page.
So from here, if you go to that logging.
Yeah, that is our signing page.
So from here you have to add your email address.
Password click is a login and then everything is great.
It's not necessarily related to our purpose.
And also if you want to add that your sign up.
So that is our forget password that you sign up for the sign under the register page.
So here they told you you have to update this.
Your sign up downplayed the there is to sample it.
So everything is now looking great.
I hope you enjoy it very much.
And here we successfully completed this portion.
OK, so thanks for watching.
I'll see you the next video.