All language subtitles for 6. What is Middleware, Types & Use

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

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.