Hello, friend.
Welcome back.
In your previous video, we successfully complete our changed password option right to now in this video
and to discuss about our profile, that means if you want to change your profile name, if you want
to change your profile email address.
First of all, it will be visible.
And then I want to do on top it so I can do that work.
In this video, I will show you that things with a live example for doing this.
First of all, here into the hour, that is our templating of the Tampa Bay area.
First of all, you have to find out appropriate location.
And here we have to add one other the right.
So now, if you want to add this out, that is, you know, are not B.M. into that B.M. You can see
that is our admin master template that we need to a template that is I have already complete that out.
Jane's password right now that is on my profile.
So that is my profile here.
I don't, I don't the out.
But I copied and I first of all, I want to add that out and I want to do want to create that out as
a profile update,
like a profile dart update.
So they step up one of the down to create.
OK, so that is our profile update.
So now what we have to do, we have to create this space and also we have to load this page.
That means there is a killer out.
We have to create and go to our web brought here after this.
I make it as a user profile.
OK, that will be the user profile.
So you do the user profile we're trying to do on to copy it.
I copied and pasted it to the gate and I name it as a profile update or user profile.
OK, name it as a user profile user profile.
And then I have already put that name.
I put that out name as it will be as a profile of it.
I copy it and then here it name it as a profile update.
So that will be as a P update.
OK,
update.
That will be as a P update.
And I, we have to we have to create our this matter.
We have to create this matter in our at password controller.
So now go to our controller.
And here after this, after this I take another one as a public and then function and then our my name.
That is our method.
So into this matter, what exactly we have to do into this method, we have to do.
We have to all they have already I'm logged into this authenticated user that have already one of the
name of the email.
Right.
So now I want to do I want to get this name.
And also I want to get our this email here on the visibility and the visibility.
You can visibility with using that our value.
But first of all, we have to we have to get our TS authenticated user details that we authenticate
the user name and the email.
So here for the business here, we have to do we have to work for this because of all we have to get
that appropriate.
Which user is logging?
So these logging user details we have to get.
Right.
So for the reasons I had one of the if condition, I simply add on the if condition and if our Desart
that is authenticated user, OK, if they have any authenticated users, this user I want to do, I
take one of the variable as it user.
I take on the variable as a user, these user with our user model because the user model I have already
all the data.
So that is the default one.
We need to install that level.
We get by default this user model.
Right.
So with this user model and would want to find I want to find what I want to find out this authenticated
user idea.
Right.
So that is the idea will be needed.
So that is actually this authenticated user idea.
I want to take so far the results here.
I want to do I want to add that are authenticated that it is authenticated user.
So this authenticated user idea back.
So that is our ID like a friend.
I hope it's very much clear to you.
And after that I want to do if this user.
That means if again, I want to add if this that is actually are authenticated, this user ID, I take
the things with this variable.
If they have any idea then I want to do and return it with a specific on the page because I want the
visibility.
OK.
So here for the reasons I take it as a returned one of the view space.
So I have to do I have to create the view space so much better here in our admin body.
So do the admin body folder.
I want to clear on the page as a bit profile.
OK, that means here in our admin folder into the body folder and even the pace of the update sorry
update and the risk profile.
So I profile this step up one of the page I want to create.
So now I want to do and to create this.
That is our body, that is our body folder here.
And to create this page as an update profile dot blade dot vsp.
So I simply say with OK, so that will be our IP profile and here I get our appropriate user data and
take the things with this variable.
So now I don't want to pass out this authenticated user data.
I want the visibility of the profile space for the reasons here, what exactly you have to do.
We have to simply pass it to see if you want to pass it.
That means you have to pass it with the contact.
Right.
So this compact I simply pass out this user, I hope is very much clear to a friend.
So that is that's all you have to do.
OK, so now we can actually access our this authenticated user ID.
That means each user is right now already logged in.
So I want to update our this page as the profile page.
So this page will be like I copy everything from our change password.
I copy everything from here, OK, I copy everything and here I post it.
So here I don't need any validation.
I remove it and uh, that is our field.
I only want to take one field.
OK, I don't need this.
I also don't need this.
I better copy it.
And here we don't need any validation.
I remove that validation here.
We don't need any placeholder here.
We need actually the value.
So that is an ID idea.
Also we not needed and.
And here we have to do we have to ability to type the type will be as a text type, not the password.
It should be the text type and the name.
I name it as a name.
That will be the name.
And here the value visible.
So here I mean it as the user name, user name and indeed the user name.
So that will be the user profile user profile in the profile update.
So they step up the pace name of the visible and here extended our master admin, then admin section.
And here also we have to have some action for update.
So I will do that later.
So right now that is our field.
So here I add as a user name, there is a level in particular with the type name will be the name and
then class control that result from control.
And after that, I understand the visible that our TS authenticated user name.
So which user is already logged in this user name?
I want to display even the display, which will be what it should be with the well right so value.
So with this value and all the visible it.
So here I want the visibility so you can do visible it.
You have to do it from here.
From here.
I pass that data without that is authenticated user data.
That is our variable.
Right.
So here I have already passed it in our added profile.
So now we can actually use it.
So now I'm going to use it.
So with this user, I want to access our definition to display our filename.
Our filename is what our filename is.
That is actually the name and the email.
Right.
So now the visible.
Let me so here is the visible lead.
So I want to do all the simply visible that our filename, our filename as a name.
So I namely that the name of the event.
So that's all you have to do.
So now it should be visible that name.
And also here on the visible, our list authenticated user email.
So that will be emailed and here I name it as the email name will be needed because we have to do we
have also updated.
So for the business here, I mamita the email field and that will be an email that the user email.
OK, perfect.
And then there is a cloud saves or not, the service will be an update.
OK, I want to update this literally so far and that's all.
OK, that's a long list.
Check this out if you're not going to get a save all.
And now if you go, you're basically as a refresh.
Now, go to our position, there is a high profile click on here, yes, you can see right now it's
appropriately getting our specific user name, and that is use that email address.
That means right now which user is already logged in.
This user name and email is visible.
Right?
If you go to our database here, you can see that is actually our I'm logging with the admin at the
original dot com and there is a name as a courtesy right now is visible it so here it is, visible it
with our values.
So here I have already added that will also these authenticated user, which user is logging is not
visible, this authenticated user name and the email address.
So here I have successfully get that data and password in our update profile with that user.
That is a compact.
And now you can see it's not perfectly getting our user name and the email.
So it's perfectly displayed.
So now I want to do I want to update it that if you want to update this, authenticated this user name.
If you want to update this email address, then how can do that work?
In our next video, I will show you that things with a live example.
So thanks for watching.
I'll see you in the next video.