Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Please welcome to the course of Lavallade Apiata material, this is part hit inside the suite, you
will see the concept that is what is Middleville and what I Stipes.
So first of all, we do understand that.
What is a Middleville?
So if I go back to slide little that we have a of application inside this application, we are processing
thousands of SJT per request inside these request.
Some are valid and some are invalid.
Right now there is no protection barrier.
It means all valid and invalid request coming inside this application and gets processed.
But now there is the concept of Majorsville.
Mitchellville always comes in between Astarte request and application.
So when we deliver excessed, some of you are in this situation.
It means when investible request come inside this application, it must pass through this.
MIDDLEVILLE So we have three types of Middleville inside.
Laravel The first we have Global Mitchellville, the second we have Group Middleville and the third
we have called about Middleville.
So what is the difference between these?
So if I write the types, let's say we have the first call globally next we have called the group and
finally we have called.
They're all we are so global.
The word indicates that the Middleville which we will create automatically applies to entire application
inside this application.
Suppose we have thousands of rounds.
So when we create any Middleville, which is global, then directly this global Middleville automatically
applies to thousands of rounds what we have inside this application.
Now, what is group, Litsa, that we have thousands around, but we don't want to apply the middle
of a concept inside each of the crowds, we want that we want to specify a group of roads.
Let's say we want to apply our out means middle.
We're only on 20 specific roads.
So what we will do simply we will create a group of 20 roads.
So if I write a group of 20 roads, for example, and inside this road simply we will apply this group.
Mitchellville concept will create a Middleville that Mitchellville will be applied only for these 20
roads, but then will create a global Middleville automatically.
Applies to all roads, what we have inside application, Novartis's Road Middleville, Litsa, that
we have 20 roads inside application and we don't want to apply Lizzi to all the roads to a group of
roads.
This time we want to apply the concept of Middleville, only a single specific road.
So in this situation will use Road Middleville instead of using Global and Middleville.
So when we create a Middleville inside lateral application for use, BHP additions come on.
So inside Road Middleville, we apply only on our specific road
to create a middle view.
We will use PSV addition.
Come on.
So if I back to the terminal here, we have the setup called LAwas Hyphen Ebor.
Now when we type the command called addition we should see inside me.
Come on pallette here.
We have to make them on Pallett not inside espaliered.
We will see a command call make Mitchellville.
This command will create a new middle class.
So when we create any Middleville it will go Aniceto.
Inside this app.
Inside this app we have as TDP and inside this SCDP, we should see our Mitchellville folder.
So by default, when we installed an application by default, all these middle of yours by default available.
So when we create our own Mitchellville automatically it will go and is to inside this folder.
So after creating any Middleville we need to configure, are we to tell this Laravel application that
we have a Middleville and we need to use that?
After a string that will later on will decide that that Middleville is a global rout or group Mitchellville,
because while creating any Middleville by the help of middleware, come on, there is no flag.
There's no specific syntax to specify that which type of Middleville actually reactivating the whole
depends on the registration of that.
MIDDLEVILLE So which file we use to register?
Middleville Simply We use Gunhild ought to be nine to we replaced or the Middleville what we create
for this application.
So now as you can see, that kernel is a class and inside this class we have first as an array called
Protected Mitchellville variable.
And this Middleville represents our global middle views.
So when we create a global Middleville or simply say, Amidala for this application, when we register
inside this area, then that model will automatically get applied globally to entire application, because
this is an area which indicates the registration of global Mitchellville.
Now, if I scroll down here, we have the group Middleville.
So what we will do simply we need to create a group after creating a group vanmeter just to integrate
living inside that, then that model will automatically apply to a specific group of roots.
This is all about our second type.
Not if I scroll down here we have the Totti and as final that is solved, we deliver so very large to
any Middleville inside this area then that Middleville only applies to a given space crowd.
Now the question is, how can we make our group also, how can we apply only for a specific role inside
this application so little that we have a global Middleville, as I told you, that global media will
automatically get a place over each and every part of this application.
So simply for Group Middleville, if I go inside this route's folder, we thought PSP now for the for
our group model, we are simply what will do.
We create a group so Routt Group and inside is free to specify the middleware key.
So here we have Middleville next week to McEnery.
And inside this we tell that this is why Middleville it means having to pass the Middleville group name.
What we create inside is gonna be Litsa, that we are destroying our group model.
We are simply we will create or register inside this area and this is the name of the group.
Simply need to copy and paste it here and next RI to make a callback anonymous function and simply very
register any number of roots inside this callback block down those roads will be protected from this.
Mitchellville, this is called Group Mitchellville.
Now what is it called Middleville letter that here we have a specific role that is sample.
Now what we want, we want to protect Israel from what Routon Delirio simply we will create a Middleville
and register by the help of this round, a very will when we create energy.
So inside this any simply we need to copy the name and Kahil list that we are protecting.
This sample wrote simply we type the middleware decision method and inside this matter we need to pass
the name so simply by specifying that the name of Mitchellville inside this middleware method, we are
telling this application that this round is protected by Routt.
Middleville So this is the overall concept, guys.
That is what is Middleville and what is type and how can we use the materials inside Lavall application,
not inside naks, but you will see a concept of Routt group as well as Routt prefix.
So for this decision and for watching and have agreed to.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.