Hello, friend.
Welcome back.
You know, previous video I have discussed about that, things with you, how can verified your email,
right?
So right now we can verify it.
Everything is now perfectly working.
So here we don't need this.
That is a verify.
There is a lot of the official site suffering in this video.
I want to discuss about one things we do, like if you go to our call catagories or rather than the
brand, the multiple images, every page is like here.
If you copy it, I copy that link.
OK.
So if you want to use the access that our category all bassal, that is index page.
That is all you.
All right.
But right now, if you click on the log out right now and log out to now, right now, if you actually
accessed this, that means there is actually our category all.
And after that, if they enter nonconstitutional showing some of the error, that means right now we
can actually access our URL and they are perhaps on the profile for the wall is missing.
So for the reasons, this is what this message is visible.
OK, so here I want to do want to protect it.
That means when this user will be locked out, if you want to access that the wall, you cannot able
to access it.
It'll be redirected to you to the logging page.
So friend here, you don't need to do anything because in Laravel there have also one the middleware
as a default Menelaus.
OK, so with this option in the lower, we can actually do that work.
OK, so here we have we have to call it like a show you.
If you go to your dealer that means that is our configuration of that file.
And then there is R providers, there is a mailer and if you go to that dealer and if you go to that
our Carnel dot BHP into the candidate BHB here, you can see from that is also on the by default or
my dealer as all.
So that is the location in our EDP, that is our app is TDP Maryla and the authenticate that that is
actually authenticated is working for this.
OK, that means Hoiles because the individual will not request and return redirect to the logging page.
So right now I want to do I want to use this.
So here I only want to add this free function.
So if you want to add it.
So that is the hour you are.
So if you go to our Web browser, out into the Web browser for the brand, so that your category, so
that your category indexed.
So that is our category controller.
So now go to that, our category controller if you go.
So that is our city controller and the category comptroller under the category comptroller.
First of all, here, I want to do want to add one of the corners.
Stichter, OK, that means constructor is one kind of function that is in this class will be lowered.
That means this glass will be lowered automatically.
Our first of all, constructor class will be run, OK, and then our list of all that matter will be
activated.
So here, if you do that work, I show you here you have to do we have to create this function of the
public and then function and the function I want to do and to make it as a space and double on the line
as a kind of step to reconstruct and into the contact area here.
We have to do we have to create it.
So now.
Sorry.
So now here I want to do to create it.
So here you have to do you have to just simply call this the D and with this you have to add that Middler
OK, you have to add this Middelburg which middleground to call on the call.
As awkward as I told you, that is one of the default middler.
That means right now when our this class that this control class will be done automatically, first
of all this constructor method will be activated.
OK, and after that our list of all that mattered.
That was all that mattered.
The Atget method, all that will be activated.
So when it will be checked, that is when this issue with this all this will be take this user is locking
it or not.
So when this user will be not logging, then automatically redirected to our specific logging base.
OK.
So there is that our functionality audit on here, you can see so we don't really put our logging out.
That is all the default out.
So here I don't use it to save all.
And now if you right now I'm not logging, but right now, if you want to access this, you are still
looking to enter.
Now, considering it is now redirected to you to the logging base, I hope it's very much clear to you.
And now if you logging and after that logging, that is all category is perfect.
Right.
And also, if you say I want to do that work for our brand, that is all very well.
I copy it.
Go to the log out.
And if you want to exit the world, click the entry because it's not showing some of the ad or sales.
Want to do the same things for our other controller.
I have created that is a brand controller.
Right.
So that I copied I copied this code and now go to another controller as a brand controller.
So the brand controller, I also want to do the ad it.
So first of all, after this look after this.
I want to add this constructor and there is a Middler as Ahmedi that happened.
So I have a because because about the things we do now can create that Middler and how that might actually
work as a save all.
And now if you refresh it.
Yeah.
You can see right now I'm not logging for the reasons you return to you to the logging base.
OK, so now I think it's very much clear to you and also there is another one better the controller
here.
I didn't create anything, but I also want to do and add it in particular, that area to save all everything
is great.
So I hope friend is very much clear to you.
How can I protected you?
Also, when you log out, automatically be done redirect to the logging base.
You cannot exelixis all that.
Your allowed link.
So perfect.
So that's all for our authentication know.
Next video on the don't update our this admin panel.
OK, that means they have that panel so you can add some of the template.
How can add some of the template into the funding system by step?
I'll show you everything with a live example.
So thanks for watching.
I'll see you in the next video.