1
00:00:00,210 --> 00:00:00,930
Hello, friend.

2
00:00:00,960 --> 00:00:01,800
Welcome back.

3
00:00:02,310 --> 00:00:08,670
In a previous video I have discussed about how can create some of the controller and also how can working

4
00:00:08,670 --> 00:00:09,550
with the controller.

5
00:00:10,200 --> 00:00:15,930
So now in this video, I want to discuss about that modular, and that is one of the most important

6
00:00:15,930 --> 00:00:17,430
part in Laravel project.

7
00:00:17,430 --> 00:00:17,730
That is a.

8
00:00:18,600 --> 00:00:20,970
So I want to give you some examples then.

9
00:00:20,970 --> 00:00:22,560
It should be much closer to you.

10
00:00:22,680 --> 00:00:28,950
Like, as I told you before, when you call some of the specific building and the building area that

11
00:00:28,950 --> 00:00:34,070
have the type of person, one is the businessman and that is the jobholder.

12
00:00:34,170 --> 00:00:40,890
So if you want to access to the card that you want to go to the job for person, then God will inspect

13
00:00:40,890 --> 00:00:44,270
you and he'll be help you to reach that jobholder person.

14
00:00:44,550 --> 00:00:50,940
And also, if someone comes and want to meet with the business person and then this card will help him

15
00:00:50,940 --> 00:00:52,760
to reach to the business person.

16
00:00:53,250 --> 00:00:58,280
OK, so that's the guard functionality work by this modular occupant.

17
00:00:58,590 --> 00:01:05,480
So in actually there is pretty much common, like if you search on some of the YouTube videos and Xbox

18
00:01:05,490 --> 00:01:11,400
for that your age range, that is when you adult, when you're eighteen years old, then you will be

19
00:01:11,400 --> 00:01:15,880
able to access this video rather than you will be not able to access this video.

20
00:01:15,910 --> 00:01:22,200
So this type of all that instructions for this type of all that functionality managed by this modular

21
00:01:22,410 --> 00:01:28,470
so can create this modular in this video, I will show you that things with a live example for doing

22
00:01:28,470 --> 00:01:30,060
this is pretty much easy.

23
00:01:30,060 --> 00:01:36,600
If you go to Laravel official site into the basic and they have the Domitilla sended the media here,

24
00:01:36,600 --> 00:01:38,910
you will get a lot of the resources here.

25
00:01:38,910 --> 00:01:40,540
You can see if you want to create some of the media.

26
00:01:40,870 --> 00:01:47,580
So that is our come line as a pop artist and make me deliver and that will be your middle name.

27
00:01:47,730 --> 00:01:51,180
OK, and also here you can see there is an age limit.

28
00:01:51,180 --> 00:01:57,270
So it should be as a less than or equal to 200, then this will be the home page.

29
00:01:57,270 --> 00:02:04,110
And if subjected to the space so better, I'll show you how that functionality actually work like I

30
00:02:04,110 --> 00:02:07,120
want to do to create, first of all, all of the Middler I copied.

31
00:02:07,410 --> 00:02:12,270
And now I want to open our this location that is our project location.

32
00:02:12,270 --> 00:02:13,380
I want to paste it.

33
00:02:13,620 --> 00:02:17,580
There is a PSP Ardizzone Make Middler and then your middle name.

34
00:02:17,880 --> 00:02:22,890
So whatever the name you will choose, you can choose it from here right now for educational purposes.

35
00:02:22,890 --> 00:02:25,160
I'm using the same name as a tech ace.

36
00:02:25,440 --> 00:02:29,510
OK, now if you click as they enter, now you can see Middelburg here.

37
00:02:29,520 --> 00:02:30,440
They're successfully.

38
00:02:30,600 --> 00:02:33,780
So when you created this Middler you'll get this Middler.

39
00:02:33,780 --> 00:02:40,680
If you go to your extension, that means your app and the SCDP and then in the city p there is a Middler

40
00:02:41,280 --> 00:02:42,310
in the middle here.

41
00:02:42,310 --> 00:02:44,490
You can see that is by default all that.

42
00:02:44,490 --> 00:02:47,630
Middler and I have created New Middler as a check.

43
00:02:47,930 --> 00:02:49,610
So that is I have created.

44
00:02:49,780 --> 00:02:50,150
Right.

45
00:02:50,490 --> 00:02:56,790
So when you create any Middler you have to put that notification to the level that I have created one

46
00:02:56,790 --> 00:03:01,010
of the Middler as a check case or whatever you or whatever you actually created.

47
00:03:01,380 --> 00:03:03,450
So you have to do is have to register it.

48
00:03:03,750 --> 00:03:06,500
You have to register it into the kernel dot PSP.

49
00:03:06,660 --> 00:03:09,410
OK, so you did the candidate BHP if you open it.

50
00:03:10,050 --> 00:03:17,850
So here in particular, that area so into the broad Midland area, you have to put on the notification

51
00:03:17,850 --> 00:03:22,840
to the level that you have created one of the new Middler that was here, you had already started.

52
00:03:23,280 --> 00:03:25,500
So right now I don't want to better copy it.

53
00:03:25,920 --> 00:03:27,440
And after that I passed it.

54
00:03:27,450 --> 00:03:30,640
So I have put that name, whatever you want.

55
00:03:30,660 --> 00:03:32,580
Right now, I want to do on to create one.

56
00:03:32,610 --> 00:03:39,720
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

57
00:03:39,720 --> 00:03:45,290
is you can actually access out your this modular because I have created this Mvula as a case.

58
00:03:45,900 --> 00:03:47,760
So right now there is a controller.

59
00:03:47,760 --> 00:03:48,750
So you don't need this.

60
00:03:49,020 --> 00:03:50,130
I remove everything.

61
00:03:50,520 --> 00:03:54,930
OK, I remember everything is a well complete agreement with it.

62
00:03:55,410 --> 00:03:58,650
So I have created one of the middle earth that is a modular.

63
00:03:58,650 --> 00:04:03,690
I have created as a power this one leatherjackets.

64
00:04:03,690 --> 00:04:05,640
So now I want to learn to copy it.

65
00:04:06,390 --> 00:04:08,350
So here we have to do we have to name it.

66
00:04:08,370 --> 00:04:10,920
OK, so here after that authentication.

67
00:04:10,920 --> 00:04:13,770
So here, here we don't need this here.

68
00:04:13,770 --> 00:04:20,400
We have to name it our this middle name that means in our app and then SCDP and in the distributed there

69
00:04:20,400 --> 00:04:26,630
is a Metellus to app is TDP Maryla enter the middleware folder I have created on the file at the check

70
00:04:26,640 --> 00:04:27,090
ehs.

71
00:04:27,450 --> 00:04:32,520
So make sure you add that as a Chickie's and after that you have to have to add this class.

72
00:04:32,520 --> 00:04:37,490
That means that is actually our class and I hope is very much clear to you.

73
00:04:37,510 --> 00:04:41,880
So here into the kernel, into the cannot BHP here, we have to register it.

74
00:04:41,880 --> 00:04:45,600
So I have already registered it and I named it with the name as the A's.

75
00:04:45,900 --> 00:04:48,800
So no one to do and to work in or this Middler.

76
00:04:48,810 --> 00:04:53,880
That means here that some of the functionality there is a function handle and that is a request.

77
00:04:54,270 --> 00:04:59,520
So this is the request you get like here if you go to Laravel official site.

78
00:05:00,230 --> 00:05:03,500
And here you can see they have some simple condition, but I copy it.

79
00:05:03,660 --> 00:05:05,650
OK, copy this safe condition.

80
00:05:06,170 --> 00:05:09,360
So and after that, there is a return next to my default request.

81
00:05:09,380 --> 00:05:12,680
So here after this year, I passed it.

82
00:05:12,880 --> 00:05:20,020
OK, so here that means whatever the request I passed through the hour, you are still so into the request.

83
00:05:20,030 --> 00:05:20,480
You are ill.

84
00:05:20,480 --> 00:05:21,330
He should be checked.

85
00:05:21,350 --> 00:05:25,430
That is to make that you this name will be your registered name.

86
00:05:25,580 --> 00:05:30,980
OK, so right now I use it as the eighth to hear if you want to change it, you can change it.

87
00:05:30,990 --> 00:05:32,070
You can make it easy.

88
00:05:32,660 --> 00:05:34,300
Right now I use that as a check.

89
00:05:34,850 --> 00:05:40,640
OK, so one of the things you already studied on here is that you have to do we have to add it on here.

90
00:05:40,790 --> 00:05:42,800
OK, so that is actually our check.

91
00:05:43,280 --> 00:05:43,590
Right.

92
00:05:44,240 --> 00:05:46,010
I hope is very much clear to you.

93
00:05:46,020 --> 00:05:50,960
So now here that is our emblazed or the equal and that is available.

94
00:05:51,000 --> 00:05:57,410
So I nine to two and to change that value as a 20 occurrence, that means when it will be less than

95
00:05:57,410 --> 00:06:02,330
an equal as a 20, then it will be written direct to the home base.

96
00:06:02,660 --> 00:06:04,740
Rather then it's not will be visible.

97
00:06:05,120 --> 00:06:10,920
So here, if you want to add that here there is a return redirect one of the home rule.

98
00:06:10,940 --> 00:06:15,650
So I don't have I didn't create any home rule, baby, uh, here.

99
00:06:15,800 --> 00:06:17,020
So I didn't get any home road.

100
00:06:17,060 --> 00:06:19,750
But I want to go on to create another road for our home.

101
00:06:20,390 --> 00:06:22,870
That means that will be as a home.

102
00:06:23,700 --> 00:06:25,690
OK, that will be our test out.

103
00:06:26,090 --> 00:06:28,540
So that is actually the road I created.

104
00:06:28,550 --> 00:06:33,730
So that will be our home road and the home road down to the on to create one of the eco.

105
00:06:34,310 --> 00:06:38,550
That means I want to show some of those 10 velu sorry here.

106
00:06:38,550 --> 00:06:43,610
I want to load some of these twin value as a this is home base.

107
00:06:44,300 --> 00:06:47,370
OK, so this step up of this value is still the display.

108
00:06:48,020 --> 00:06:49,570
So here I have created it.

109
00:06:49,580 --> 00:06:55,160
So now I want to do want to add our this Middler functionality, I want to add this middleware functionality,

110
00:06:55,160 --> 00:06:58,910
I name it with the check and also register it with the name as a check.

111
00:06:58,910 --> 00:06:59,190
Right.

112
00:06:59,520 --> 00:07:05,230
So now to do want to add this middleware in know about base for education purposes.

113
00:07:05,240 --> 00:07:06,520
I'm using it on here.

114
00:07:06,650 --> 00:07:10,460
So if you want to add that Middler here, you have to do that right down the middle here.

115
00:07:12,590 --> 00:07:15,160
OK, you have to write down the middle earth and the modular.

116
00:07:15,160 --> 00:07:17,690
I have created that modular name as a check.

117
00:07:18,470 --> 00:07:18,820
Right.

118
00:07:18,860 --> 00:07:21,350
So make that your that is our check.

119
00:07:21,650 --> 00:07:22,030
Right.

120
00:07:22,310 --> 00:07:28,490
So right now, if you want to access our D about space, if you want to access it, then first of all,

121
00:07:28,490 --> 00:07:36,020
you have to do you have to also address actually on the condition you have to as a 20 step is when you

122
00:07:36,020 --> 00:07:42,200
as group level will be as a less than or equal to twenty, then it will return redirect to the home

123
00:07:42,200 --> 00:07:42,400
page.

124
00:07:42,410 --> 00:07:42,640
Right.

125
00:07:42,650 --> 00:07:46,540
And then you will be not able to access our piece about space.

126
00:07:47,090 --> 00:07:47,400
So No.

127
00:07:47,400 --> 00:07:48,270
One to check it.

128
00:07:48,290 --> 00:07:51,100
Everything will be much clear to you if you not to save.

129
00:07:51,140 --> 00:07:52,510
All right.

130
00:07:52,520 --> 00:07:53,710
Now that is our home page.

131
00:07:53,770 --> 00:07:57,790
That a refresh so no one to do and to access our home route.

132
00:07:57,800 --> 00:07:58,280
Right.

133
00:07:58,310 --> 00:07:59,650
That is all about out.

134
00:07:59,660 --> 00:08:04,300
So that is all about so into the about third area that is our about here.

135
00:08:04,310 --> 00:08:07,080
I have already put that modular on the condition.

136
00:08:07,110 --> 00:08:08,270
So now let's check this out.

137
00:08:08,270 --> 00:08:12,420
If we know says that about to enter.

138
00:08:12,890 --> 00:08:13,820
Yes.

139
00:08:13,820 --> 00:08:19,970
You can see friend when you actually use it, it's now predicted to not about reject redacted to the

140
00:08:19,970 --> 00:08:20,810
home page.

141
00:08:21,170 --> 00:08:25,160
OK, so because of all here, I have already put that condition.

142
00:08:25,730 --> 00:08:27,170
Let me see the middle area.

143
00:08:27,170 --> 00:08:34,060
I have already put that condition when it should be listed as an equal to 20, then it will be returned

144
00:08:34,060 --> 00:08:35,520
direct to the home page.

145
00:08:35,900 --> 00:08:42,200
So here I have put that condition, medical condition in there about that means will be as if you want

146
00:08:42,200 --> 00:08:46,300
to access that about you must have to be greater than the 20.

147
00:08:46,540 --> 00:08:53,210
OK, so for the reasons here, you can see if you access by about the enter is automatically redirected

148
00:08:53,210 --> 00:08:54,200
to the home.

149
00:08:54,560 --> 00:08:59,390
OK, so here, if you want to check it like here I want to do want to check in with the about.

150
00:08:59,970 --> 00:09:04,240
So here I want to add one of the condition as one of the conditions.

151
00:09:04,250 --> 00:09:09,200
There is a check and here I want to do and to make it as a 32 or twenty.

152
00:09:09,650 --> 00:09:11,000
OK, maybe another twenty five.

153
00:09:11,120 --> 00:09:11,370
Right.

154
00:09:11,390 --> 00:09:13,340
No, I didn't create any ID.

155
00:09:13,580 --> 00:09:14,850
So that means that is actually our.

156
00:09:14,870 --> 00:09:15,660
Is it.

157
00:09:15,860 --> 00:09:21,570
OK, so here I have put that condition as a condition that is under 20.

158
00:09:21,680 --> 00:09:23,780
So now I want to do and to make it as a twenty five.

159
00:09:23,810 --> 00:09:25,340
So now let's check this out now.

160
00:09:25,400 --> 00:09:28,520
Can I access our about out or not.

161
00:09:28,900 --> 00:09:30,320
And to enter.

162
00:09:30,960 --> 00:09:32,000
Yes.

163
00:09:32,010 --> 00:09:37,180
You can see for now you can actually able to access this idea at the twenty five.

164
00:09:37,200 --> 00:09:40,090
So right now you can access our D about base.

165
00:09:40,550 --> 00:09:42,770
I hope it's very much clear to your friend.

166
00:09:42,770 --> 00:09:44,780
And also that is our twenty five.

167
00:09:44,780 --> 00:09:45,050
Right.

168
00:09:45,050 --> 00:09:51,620
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

169
00:09:51,620 --> 00:09:52,090
15.

170
00:09:52,330 --> 00:09:54,000
OK, I make it as a 15.

171
00:09:54,320 --> 00:09:59,570
So now if you add that 15 and after that if you click as they enter, that means you should.

172
00:09:59,720 --> 00:10:06,950
Be redirected to our deselected home base, right where everything actually works by this middle earth,

173
00:10:07,280 --> 00:10:14,840
like I show you, like there is a 15 and now as they enter here, as you can see, is no redacted to

174
00:10:14,840 --> 00:10:19,360
you, to the home base, I hope is very much clear to your friend.

175
00:10:19,370 --> 00:10:25,210
So here, if you want to access your about base, you must have to be at the age limit.

176
00:10:25,220 --> 00:10:26,490
I put that estimate.

177
00:10:26,510 --> 00:10:28,160
You must have to be 20 years.

178
00:10:28,340 --> 00:10:36,680
OK, so here when you use the 20 years as a about and then our Middler as a at rate and the check or

179
00:10:36,690 --> 00:10:37,280
Maryla.

180
00:10:37,280 --> 00:10:43,880
And now if when you put that there before about that 20, then you can access your about base and we

181
00:10:43,900 --> 00:10:46,550
will be as 18 years old.

182
00:10:46,550 --> 00:10:52,000
And if you enter you will be not able to access that about base automatically.

183
00:10:52,010 --> 00:10:54,680
This are redacted to the home base.

184
00:10:55,440 --> 00:10:58,940
OK, so that is the very basic one of the example.

185
00:10:58,940 --> 00:11:01,790
I hope you get some of the little idea about that.

186
00:11:01,790 --> 00:11:03,470
Middler how can create that.

187
00:11:03,470 --> 00:11:08,840
Middler how that might actually work and how that Middler functionality actually work.

188
00:11:08,870 --> 00:11:11,750
OK, a friend I hope you enjoyed very much.

189
00:11:12,200 --> 00:11:13,280
Zino next video.

190
00:11:13,280 --> 00:11:15,290
I want to discuss about some of the crowd.

191
00:11:15,290 --> 00:11:19,240
You also can use SoundCloud if you want to.

192
00:11:19,460 --> 00:11:22,790
And our next video, I will show you that things with a live example.

193
00:11:23,240 --> 00:11:24,800
So thanks for watching.

194
00:11:24,810 --> 00:11:26,600
I'll see you in the next video.
