Hello, friend.
Welcome back.
In a previous video I have discussed about that, things with you, how can include our this sidebar
part?
Right.
So now in this video, I want to discuss about that logout portion.
So before that was actually default once.
If you want to find out that the follow on if you go to your project file into the project file, if
you go to our interview pace and there is a navigation.
So we need to install the Laravel default authentication system that is actually provided this file
as ID dropdown and as a dashboard.
Right.
So into this position here, if you go so before we have already logged out, you can see that is also
by default, one of the out as the log outshout.
So when this logout out is a default once right now, I also want to do to actually create a new one
for this team.
So if you want to do that work right now, first of all, we have to do we have to find out our this
file location so that within the team area, that is on the logout button.
So here I want to do to put the cloud for this one.
So here you can find out that location that is in our master, that is our admin master.
Maybe if you go that is our admin master that I have already loaded all the courses.
I have included our sidebar.
And that is our main part.
Right.
So that is our main header part.
And here you can see that is our main part.
So that is the project, the account setting, and there is a log out that means that is our project
account setting and the log out.
Right.
So here I want to add one of the round for this one.
So if you want to do that work like that, is our log also here around to doing that one of the layout.
So Sylvette, just like the same before what exactly I did a lot of the time is around.
I hope you already remember that part in the routley.
I want to go to create all that out.
OK, so here I name it as loud the user to log out, so whatever you want.
So right now I want to use as a user a dot logout.
OK, so here we have to do we have to create this out.
So if you want to create this out, go to our Web browser here and better after this, OK?
After this, I want to create that out, but I copy it.
And here I posted this will be as a gate method and then I may meet as a user user and then log out,
OK, use a log out.
Unlike now into the brand controller, I want to create this method and to create one of the mapo does
a log out.
OK, you can also create one of the new controller.
And here we have to add this controller so that no, it's OK with me and the brand controller and to
create one of the method of the log out and then out.
So here I have declared that our team will be it will be as user log out.
I copied and now here I want to change it.
It will be as it use a log out.
Right.
And I won't have to do we have to create our this logout method into the brand controller.
So now if you go to our brand controller, that means our EDP and that is our controller of the brand
controller.
So here I want to do and to create one of the new method that means here after this, namely to the
public and then function and then our method name as a user logout out.
That means a lot more method.
So here, friend, you don't need to do anything.
Everything is ready made like here.
Only you have to do.
I name the art, OK?
That means the art.
So with this all they have also one of the by default of the root function as a logout sound.
Do declare that log out.
OK, that means that logout that means authenticated user.
That means which user is already logged in.
This user will be as a log out.
OK.
So here I only want to do want to add this functionality and after that I want to return.
Did that mean the returned and then redirect.
That means return the direct and we can also make it as a gap between it'll be logout, then it'll be
redone, redirect to our aspecific another base.
It'll be then direct directly our logging base.
OK, that is also the default layout as a login.
So here I want to do it.
Shall we then redirect to our login that results will be then redirect to our logging route.
And also here.
I don't want to make a if you want to show some of the method you come out with.
Right.
I have already I have already discussed about the things we do here.
You have to pass one of the idee.
So I name it as a success.
And then your message.
So what are the methods you actually put like to be displayed the user log out?
OK, there will be displayed is step up one of the main masses name as a user log out.
So find this out, as I told you, is automatically by default.
ready-Made one of the meeting.
That means here, if you go to that, our SCDP Middler and you can see that the all authenticated Middler
see the authenticated Middelburg that is actually the by default is created.
OK, that means when this user is a log of.
He's not redirect to that the dialogue before.
So right now I want to do and also add this functionality to the logging.
And also if you go to the end of the Middler, if you go to that Carnel into the kernel here, you can
see friend by default that is also created.
As odd as I told you, friend, that is always TDP, the modular authentication of the class.
So that is all done by default.
Modular as OK.
So here I am.
I want to use this sort.
So with this out of the tool, it's me.
Find out this user is authenticated.
That means the user is logging on.
So if this user is logging that automatically, you, Sylvia, will be as a log out.
So that is actually by default all the out.
That is a log out.
And also there is a logging.
So if you want to check it here, if you open and if you run with the CMB and there is bipartisan and
then if you run, check that all the crowd, please.
A and the least, if you click, enter.
Now, considering all that default out is down here, that is all the default out.
And also here we have cleared that out every out you'll get in particular that area.
So here you can see there is by default as a forget password that is also on the cloud is created.
And also there is another one as opposed for the logging.
You can see there is logging is also created.
Everything is default one.
OK, so far right now I'm actually using these logging and also you can see that the log out so every
doubt is default.
That means when you uninstall that Laravel default authentication system, every out is created.
So here I just simply called opt out.
So here I have created that are load our this out that the logging, that message will be authenticated.
User will be log out and it should be done directly.
All logging page.
So perfect.
So that's all you have to do.
So now let's check this out.
If you click on the save all look at the save all and now go here and refresh it.
So now what to do right now?
I'm already logged in, so if you click here and here, I have already put on it that you are.
Are you consistent showing as the user log out, see if you click is a log out.
And now here you can see friend is not showing us the app.
EDP controller are not found.
OK.
It means actually if you get this arrow, that means here I'm using that.
OK, so if you want to use that out here, you have to be have to also use it.
You can see I didn't use that our desalt on here.
So here, simply use that out as use and then out.
But here, make sure you use this.
OK, so here right now I'm actually using this authentication.
So you have to also use this.
So here I'm using that also right now.
Perfect.
So now if you going to say, well, see if you get any at all, find out that where exactly it's actually
meaning's OK.
That is why this rule actually generated so that.
No, I'm using it.
So now if you go back and refresh it again.
And now go here and click as a logout.
Yes, you can see, friend, right now we are successfully locked out, so here I have already declared
that part of our this area that is locked out Mattarella, when this user is authenticated by this authenticated
user, will be logged out.
And after that log out, it will be done redirect or another default route as a logging.
OK, so that is their logging.
You can see it's now perfectly within the illegal logging base.
So if you put your appropriate email address and the password is a login and after that logging activity,
then redirect to our dashboard.
So from here right now, you can log out, see if the log also is successfully logged out.
I hope you enjoyed very much, friend.
So how can create that log of functionality, I hope is very much clear to you.
See the next video that is our default logging panel that morning.
Install la la la la la.
Well, actually, provided we step up one of the logging panel.
So that is the jet stream panel.
So right now to turn to James it here, I want to load our team into the team area.
They have all of the logging base.
So if you want to change it, how can change it in our next video and show you that things with a live
example.
So thanks for watching and I will see you in the next video.