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
fr French Download
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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,480 --> 00:00:08,070 Please welcome to the course of Lavallade Apiata material, this is part hit inside the suite, you 2 00:00:08,430 --> 00:00:13,580 will see the concept that is what is Middleville and what I Stipes. 3 00:00:14,160 --> 00:00:16,710 So first of all, we do understand that. 4 00:00:16,830 --> 00:00:18,170 What is a Middleville? 5 00:00:18,630 --> 00:00:27,780 So if I go back to slide little that we have a of application inside this application, we are processing 6 00:00:28,020 --> 00:00:32,400 thousands of SJT per request inside these request. 7 00:00:32,610 --> 00:00:36,150 Some are valid and some are invalid. 8 00:00:36,480 --> 00:00:39,460 Right now there is no protection barrier. 9 00:00:39,810 --> 00:00:47,790 It means all valid and invalid request coming inside this application and gets processed. 10 00:00:48,960 --> 00:00:52,050 But now there is the concept of Majorsville. 11 00:00:52,500 --> 00:00:58,240 Mitchellville always comes in between Astarte request and application. 12 00:00:58,710 --> 00:01:02,910 So when we deliver excessed, some of you are in this situation. 13 00:01:03,450 --> 00:01:09,510 It means when investible request come inside this application, it must pass through this. 14 00:01:09,690 --> 00:01:15,180 MIDDLEVILLE So we have three types of Middleville inside. 15 00:01:15,180 --> 00:01:22,800 Laravel The first we have Global Mitchellville, the second we have Group Middleville and the third 16 00:01:22,800 --> 00:01:25,000 we have called about Middleville. 17 00:01:25,530 --> 00:01:27,410 So what is the difference between these? 18 00:01:27,960 --> 00:01:38,070 So if I write the types, let's say we have the first call globally next we have called the group and 19 00:01:38,070 --> 00:01:39,390 finally we have called. 20 00:01:39,660 --> 00:01:42,900 They're all we are so global. 21 00:01:43,110 --> 00:01:50,640 The word indicates that the Middleville which we will create automatically applies to entire application 22 00:01:51,330 --> 00:01:52,600 inside this application. 23 00:01:52,860 --> 00:01:55,670 Suppose we have thousands of rounds. 24 00:01:56,130 --> 00:02:03,300 So when we create any Middleville, which is global, then directly this global Middleville automatically 25 00:02:03,300 --> 00:02:08,460 applies to thousands of rounds what we have inside this application. 26 00:02:09,860 --> 00:02:16,940 Now, what is group, Litsa, that we have thousands around, but we don't want to apply the middle 27 00:02:16,940 --> 00:02:23,480 of a concept inside each of the crowds, we want that we want to specify a group of roads. 28 00:02:23,750 --> 00:02:27,170 Let's say we want to apply our out means middle. 29 00:02:27,180 --> 00:02:30,420 We're only on 20 specific roads. 30 00:02:31,070 --> 00:02:36,520 So what we will do simply we will create a group of 20 roads. 31 00:02:36,920 --> 00:02:46,700 So if I write a group of 20 roads, for example, and inside this road simply we will apply this group. 32 00:02:46,700 --> 00:02:54,530 Mitchellville concept will create a Middleville that Mitchellville will be applied only for these 20 33 00:02:54,530 --> 00:03:01,340 roads, but then will create a global Middleville automatically. 34 00:03:03,940 --> 00:03:13,690 Applies to all roads, what we have inside application, Novartis's Road Middleville, Litsa, that 35 00:03:14,080 --> 00:03:22,120 we have 20 roads inside application and we don't want to apply Lizzi to all the roads to a group of 36 00:03:22,120 --> 00:03:22,570 roads. 37 00:03:22,960 --> 00:03:29,070 This time we want to apply the concept of Middleville, only a single specific road. 38 00:03:29,530 --> 00:03:36,330 So in this situation will use Road Middleville instead of using Global and Middleville. 39 00:03:37,660 --> 00:03:44,100 So when we create a Middleville inside lateral application for use, BHP additions come on. 40 00:03:44,470 --> 00:03:55,750 So inside Road Middleville, we apply only on our specific road 41 00:03:59,050 --> 00:04:00,420 to create a middle view. 42 00:04:01,450 --> 00:04:03,480 We will use PSV addition. 43 00:04:03,490 --> 00:04:04,070 Come on. 44 00:04:04,390 --> 00:04:09,430 So if I back to the terminal here, we have the setup called LAwas Hyphen Ebor. 45 00:04:09,820 --> 00:04:15,370 Now when we type the command called addition we should see inside me. 46 00:04:15,370 --> 00:04:17,470 Come on pallette here. 47 00:04:17,470 --> 00:04:20,560 We have to make them on Pallett not inside espaliered. 48 00:04:20,770 --> 00:04:23,590 We will see a command call make Mitchellville. 49 00:04:25,000 --> 00:04:28,350 This command will create a new middle class. 50 00:04:28,810 --> 00:04:32,560 So when we create any Middleville it will go Aniceto. 51 00:04:32,560 --> 00:04:33,610 Inside this app. 52 00:04:34,060 --> 00:04:40,460 Inside this app we have as TDP and inside this SCDP, we should see our Mitchellville folder. 53 00:04:41,020 --> 00:04:48,940 So by default, when we installed an application by default, all these middle of yours by default available. 54 00:04:49,450 --> 00:04:55,670 So when we create our own Mitchellville automatically it will go and is to inside this folder. 55 00:04:56,380 --> 00:05:03,010 So after creating any Middleville we need to configure, are we to tell this Laravel application that 56 00:05:03,220 --> 00:05:06,760 we have a Middleville and we need to use that? 57 00:05:08,170 --> 00:05:16,870 After a string that will later on will decide that that Middleville is a global rout or group Mitchellville, 58 00:05:17,230 --> 00:05:23,650 because while creating any Middleville by the help of middleware, come on, there is no flag. 59 00:05:23,950 --> 00:05:31,750 There's no specific syntax to specify that which type of Middleville actually reactivating the whole 60 00:05:31,750 --> 00:05:34,600 depends on the registration of that. 61 00:05:34,600 --> 00:05:38,410 MIDDLEVILLE So which file we use to register? 62 00:05:38,410 --> 00:05:46,720 Middleville Simply We use Gunhild ought to be nine to we replaced or the Middleville what we create 63 00:05:46,720 --> 00:05:48,070 for this application. 64 00:05:48,610 --> 00:05:56,170 So now as you can see, that kernel is a class and inside this class we have first as an array called 65 00:05:56,170 --> 00:05:58,560 Protected Mitchellville variable. 66 00:05:59,080 --> 00:06:03,930 And this Middleville represents our global middle views. 67 00:06:04,300 --> 00:06:10,720 So when we create a global Middleville or simply say, Amidala for this application, when we register 68 00:06:10,720 --> 00:06:18,850 inside this area, then that model will automatically get applied globally to entire application, because 69 00:06:18,850 --> 00:06:23,350 this is an area which indicates the registration of global Mitchellville. 70 00:06:24,160 --> 00:06:27,990 Now, if I scroll down here, we have the group Middleville. 71 00:06:28,720 --> 00:06:35,560 So what we will do simply we need to create a group after creating a group vanmeter just to integrate 72 00:06:35,620 --> 00:06:41,890 living inside that, then that model will automatically apply to a specific group of roots. 73 00:06:42,730 --> 00:06:45,130 This is all about our second type. 74 00:06:45,730 --> 00:06:53,650 Not if I scroll down here we have the Totti and as final that is solved, we deliver so very large to 75 00:06:53,650 --> 00:07:01,180 any Middleville inside this area then that Middleville only applies to a given space crowd. 76 00:07:01,810 --> 00:07:10,060 Now the question is, how can we make our group also, how can we apply only for a specific role inside 77 00:07:10,060 --> 00:07:18,280 this application so little that we have a global Middleville, as I told you, that global media will 78 00:07:18,430 --> 00:07:23,480 automatically get a place over each and every part of this application. 79 00:07:24,520 --> 00:07:33,460 So simply for Group Middleville, if I go inside this route's folder, we thought PSP now for the for 80 00:07:33,460 --> 00:07:36,850 our group model, we are simply what will do. 81 00:07:37,150 --> 00:07:45,140 We create a group so Routt Group and inside is free to specify the middleware key. 82 00:07:46,120 --> 00:07:49,780 So here we have Middleville next week to McEnery. 83 00:07:49,990 --> 00:07:58,690 And inside this we tell that this is why Middleville it means having to pass the Middleville group name. 84 00:07:58,870 --> 00:08:04,930 What we create inside is gonna be Litsa, that we are destroying our group model. 85 00:08:04,930 --> 00:08:10,300 We are simply we will create or register inside this area and this is the name of the group. 86 00:08:10,480 --> 00:08:20,470 Simply need to copy and paste it here and next RI to make a callback anonymous function and simply very 87 00:08:20,470 --> 00:08:27,850 register any number of roots inside this callback block down those roads will be protected from this. 88 00:08:27,850 --> 00:08:31,240 Mitchellville, this is called Group Mitchellville. 89 00:08:31,810 --> 00:08:37,710 Now what is it called Middleville letter that here we have a specific role that is sample. 90 00:08:38,050 --> 00:08:46,030 Now what we want, we want to protect Israel from what Routon Delirio simply we will create a Middleville 91 00:08:46,240 --> 00:08:51,630 and register by the help of this round, a very will when we create energy. 92 00:08:51,640 --> 00:08:58,060 So inside this any simply we need to copy the name and Kahil list that we are protecting. 93 00:08:58,060 --> 00:09:05,050 This sample wrote simply we type the middleware decision method and inside this matter we need to pass 94 00:09:05,050 --> 00:09:12,070 the name so simply by specifying that the name of Mitchellville inside this middleware method, we are 95 00:09:12,070 --> 00:09:16,420 telling this application that this round is protected by Routt. 96 00:09:16,420 --> 00:09:19,950 Middleville So this is the overall concept, guys. 97 00:09:20,020 --> 00:09:28,000 That is what is Middleville and what is type and how can we use the materials inside Lavall application, 98 00:09:29,140 --> 00:09:35,410 not inside naks, but you will see a concept of Routt group as well as Routt prefix. 99 00:09:35,830 --> 00:09:39,470 So for this decision and for watching and have agreed to. 10797

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.