Hello, friend.
Welcome back.
In a previous video I have discussed about how can create some of the controller and also how can working
with the controller.
So now in this video, I want to discuss about that modular, and that is one of the most important
part in Laravel project.
That is a.
So I want to give you some examples then.
It should be much closer to you.
Like, as I told you before, when you call some of the specific building and the building area that
have the type of person, one is the businessman and that is the jobholder.
So if you want to access to the card that you want to go to the job for person, then God will inspect
you and he'll be help you to reach that jobholder person.
And also, if someone comes and want to meet with the business person and then this card will help him
to reach to the business person.
OK, so that's the guard functionality work by this modular occupant.
So in actually there is pretty much common, like if you search on some of the YouTube videos and Xbox
for that your age range, that is when you adult, when you're eighteen years old, then you will be
able to access this video rather than you will be not able to access this video.
So this type of all that instructions for this type of all that functionality managed by this modular
so can create this modular in this video, I will show you that things with a live example for doing
this is pretty much easy.
If you go to Laravel official site into the basic and they have the Domitilla sended the media here,
you will get a lot of the resources here.
You can see if you want to create some of the media.
So that is our come line as a pop artist and make me deliver and that will be your middle name.
OK, and also here you can see there is an age limit.
So it should be as a less than or equal to 200, then this will be the home page.
And if subjected to the space so better, I'll show you how that functionality actually work like I
want to do to create, first of all, all of the Middler I copied.
And now I want to open our this location that is our project location.
I want to paste it.
There is a PSP Ardizzone Make Middler and then your middle name.
So whatever the name you will choose, you can choose it from here right now for educational purposes.
I'm using the same name as a tech ace.
OK, now if you click as they enter, now you can see Middelburg here.
They're successfully.
So when you created this Middler you'll get this Middler.
If you go to your extension, that means your app and the SCDP and then in the city p there is a Middler
in the middle here.
You can see that is by default all that.
Middler and I have created New Middler as a check.
So that is I have created.
Right.
So when you create any Middler you have to put that notification to the level that I have created one
of the Middler as a check case or whatever you or whatever you actually created.
So you have to do is have to register it.
You have to register it into the kernel dot PSP.
OK, so you did the candidate BHP if you open it.
So here in particular, that area so into the broad Midland area, you have to put on the notification
to the level that you have created one of the new Middler that was here, you had already started.
So right now I don't want to better copy it.
And after that I passed it.
So I have put that name, whatever you want.
Right now, I want to do on to create one.
I name it as the AZ or whatever you want, as I told you, and indeed is a name that as is so with this
is you can actually access out your this modular because I have created this Mvula as a case.
So right now there is a controller.
So you don't need this.
I remove everything.
OK, I remember everything is a well complete agreement with it.
So I have created one of the middle earth that is a modular.
I have created as a power this one leatherjackets.
So now I want to learn to copy it.
So here we have to do we have to name it.
OK, so here after that authentication.
So here, here we don't need this here.
We have to name it our this middle name that means in our app and then SCDP and in the distributed there
is a Metellus to app is TDP Maryla enter the middleware folder I have created on the file at the check
ehs.
So make sure you add that as a Chickie's and after that you have to have to add this class.
That means that is actually our class and I hope is very much clear to you.
So here into the kernel, into the cannot BHP here, we have to register it.
So I have already registered it and I named it with the name as the A's.
So no one to do and to work in or this Middler.
That means here that some of the functionality there is a function handle and that is a request.
So this is the request you get like here if you go to Laravel official site.
And here you can see they have some simple condition, but I copy it.
OK, copy this safe condition.
So and after that, there is a return next to my default request.
So here after this year, I passed it.
OK, so here that means whatever the request I passed through the hour, you are still so into the request.
You are ill.
He should be checked.
That is to make that you this name will be your registered name.
OK, so right now I use it as the eighth to hear if you want to change it, you can change it.
You can make it easy.
Right now I use that as a check.
OK, so one of the things you already studied on here is that you have to do we have to add it on here.
OK, so that is actually our check.
Right.
I hope is very much clear to you.
So now here that is our emblazed or the equal and that is available.
So I nine to two and to change that value as a 20 occurrence, that means when it will be less than
an equal as a 20, then it will be written direct to the home base.
Rather then it's not will be visible.
So here, if you want to add that here there is a return redirect one of the home rule.
So I don't have I didn't create any home rule, baby, uh, here.
So I didn't get any home road.
But I want to go on to create another road for our home.
That means that will be as a home.
OK, that will be our test out.
So that is actually the road I created.
So that will be our home road and the home road down to the on to create one of the eco.
That means I want to show some of those 10 velu sorry here.
I want to load some of these twin value as a this is home base.
OK, so this step up of this value is still the display.
So here I have created it.
So now I want to do want to add our this Middler functionality, I want to add this middleware functionality,
I name it with the check and also register it with the name as a check.
Right.
So now to do want to add this middleware in know about base for education purposes.
I'm using it on here.
So if you want to add that Middler here, you have to do that right down the middle here.
OK, you have to write down the middle earth and the modular.
I have created that modular name as a check.
Right.
So make that your that is our check.
Right.
So right now, if you want to access our D about space, if you want to access it, then first of all,
you have to do you have to also address actually on the condition you have to as a 20 step is when you
as group level will be as a less than or equal to twenty, then it will return redirect to the home
page.
Right.
And then you will be not able to access our piece about space.
So No.
One to check it.
Everything will be much clear to you if you not to save.
All right.
Now that is our home page.
That a refresh so no one to do and to access our home route.
Right.
That is all about out.
So that is all about so into the about third area that is our about here.
I have already put that modular on the condition.
So now let's check this out.
If we know says that about to enter.
Yes.
You can see friend when you actually use it, it's now predicted to not about reject redacted to the
home page.
OK, so because of all here, I have already put that condition.
Let me see the middle area.
I have already put that condition when it should be listed as an equal to 20, then it will be returned
direct to the home page.
So here I have put that condition, medical condition in there about that means will be as if you want
to access that about you must have to be greater than the 20.
OK, so for the reasons here, you can see if you access by about the enter is automatically redirected
to the home.
OK, so here, if you want to check it like here I want to do want to check in with the about.
So here I want to add one of the condition as one of the conditions.
There is a check and here I want to do and to make it as a 32 or twenty.
OK, maybe another twenty five.
Right.
No, I didn't create any ID.
So that means that is actually our.
Is it.
OK, so here I have put that condition as a condition that is under 20.
So now I want to do and to make it as a twenty five.
So now let's check this out now.
Can I access our about out or not.
And to enter.
Yes.
You can see for now you can actually able to access this idea at the twenty five.
So right now you can access our D about base.
I hope it's very much clear to your friend.
And also that is our twenty five.
Right.
So now if you change it like that is actually 20 or less than that 20 I want to do and make it as a
15.
OK, I make it as a 15.
So now if you add that 15 and after that if you click as they enter, that means you should.
Be redirected to our deselected home base, right where everything actually works by this middle earth,
like I show you, like there is a 15 and now as they enter here, as you can see, is no redacted to
you, to the home base, I hope is very much clear to your friend.
So here, if you want to access your about base, you must have to be at the age limit.
I put that estimate.
You must have to be 20 years.
OK, so here when you use the 20 years as a about and then our Middler as a at rate and the check or
Maryla.
And now if when you put that there before about that 20, then you can access your about base and we
will be as 18 years old.
And if you enter you will be not able to access that about base automatically.
This are redacted to the home base.
OK, so that is the very basic one of the example.
I hope you get some of the little idea about that.
Middler how can create that.
Middler how that might actually work and how that Middler functionality actually work.
OK, a friend I hope you enjoyed very much.
Zino next video.
I want to discuss about some of the crowd.
You also can use SoundCloud if you want to.
And 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.