All language subtitles for 7. Naming Routes

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 Download
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
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

1

Welcome back my students I hope you're having a lot of fun.

2

And you I hope you are very excited by what you're learning right here because Laura Bell is one of

3

the best framework's in the world for BHB if you learn this you would never be jobless.

4

All right.

5

You just have to go out there and let people know what you know.

6

But anyway follow me here.

7

Now we study routes how we can put in the first parameter where we want to go and then you know return

8

some information through here and we even learn how to pass same parameters.

9

But the cool thing about route's is naming them.

10

All right.

11

So for example let's say let's just copy one of these guys actually let's write it down or like to write

12

it down because that way you get used to it.

13

So let's say we create you see how this looks.

14

This is a starting method just a regular starting method that you can see in a couple of parameters

15

.

16

Let's say you have a router I super long like this admin pulls

17

just one whatever.

18

I mean polls like this that's fine.

19

And then you have your of course your closure function here.

20

All right you bring it down.

21

Let's say you have this big long you are out but you want people to actually type in something a little

22

bit less bigger than that let's just put put it like this.

23

Let's just give it another parameter example right.

24

Let's say you want them to type something a little shorter than you can name this route.

25

Give it like a nickname.

26

Very simple.

27

All you have to do is create another parameter here and say array.

28

Actually you want to wrap everything inside this so you're going to put this at the end.

29

Right.

30

And we're get to do this as.

31

And then this is going to be an associate of array.

32

And you can type whatever you want let's just say let's call it ad men pull home or something like that

33

.

34

All right.

35

And then you've got to do this uses.

36

Actually we don't have to do use because we are not using a controller.

37

You will learn later on.

38

But anyway as you can see here all we did was put on the rain the second parameter actually wrapping

39

everything.

40

All right so now I'll show you right now with a helper function.

41

So let's just say you are well and let's just use a helper function from Claribel call route to access

42

that route.

43

And I'm just going to say at home.

44

So what we're doing here is we grabbing this raúl we grabbing it and we are saving in this you or else

45

so that way you can see it when I can show it to you that it is actually a data value is this right

46

here.

47

Right.

48

And I'll repeat that again.

49

But anyway so they're going to say this is this you are l is and then we're going to concatenate your

50

L variable.

51

And when I close it up.

52

So now if I go to this route right here on your show right here if I go to that you can see that it

53

takes

54

everything.

55

All right.

56

So what this means is sorry about that guys that this admin that home is a senting is this.

57

All right.

58

Another way to actually which is pretty cool to actually find this owl is by going to terminal and in

59

doing a.

60

And I'll show you right now as a matter of fact let's click here.

61

This little box terminal and right here this is a little termino that comes with BHB storm rifle those

62

of you that BHP storm.

63

All right you don't have to be storm open your terminal and go to the sea M-S folder let you see actually

64

if I go to terminal right here and I go to see the CMOS we can type it in.

65

Let's just clear everything and let's just say BHB Arty's Sen.

66

All right.

67

And we're going to say route Colan list and then enter.

68

Right as you can see this this adducing command and we've got to we're got to get into it later.

69

But don't don't worry about it too much right now.

70

You can see right now that the name of this route is admin at home.

71

All right.

72

And this is the med to get requests.

73

We'll get into that more later on.

74

But we just know that we were able to grab that big long u r l and use it and rename it give it a nickname

75

.

76

All right.

77

So not only are we able to do this in Laro bell without having folders and files or anything like that

78

but we are also able to nickname it.

79

All right.

80

We are able to give it a smaller name and use it and this little function right here allows us to use

81

.

82

So if we had to you are for example we have a link right we have a link like this ref whatever and a

83

link like this in the inside is ref we can say we could write something like this route.

84

And then the name had me in that home or whatever.

85

And when we click on that link it's not going to happen.

86

Now I'll just give you an example when we click on that link in this ref is going to have all of that

87

all these you are going there.

88

All right well we click on he's going to take us to this.

89

You are all there.

90

Right.

91

But this is just a crazy example here don't worry about that.

92

All right.

93

But anyway we're done here.

94

Thank you so much for watching and I'll see you in the next.

95

Actually let me make it like this so you have it.

96

You can copy it.

97

I'll see you later guys.

98

Bye bye

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