Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,500 --> 00:00:08,690
OK, in the course of Lavallade EP database, Doyel, this is part nine inside this video, we will
2
00:00:08,690 --> 00:00:13,030
discuss all about her group and now prefix in Laravel.
3
00:00:13,640 --> 00:00:19,220
In the last we do, we have seen some concept of Middleville inside that video.
4
00:00:19,550 --> 00:00:22,930
Also, we had discussed all about group Mitchellville.
5
00:00:23,300 --> 00:00:28,930
So how to create a group of Routt already we had discussed inside last video.
6
00:00:29,720 --> 00:00:36,500
So if I go back to slide, so let's add that we have an application inside that application.
7
00:00:36,500 --> 00:00:44,420
We have several types of admin panels and inside those admin panels we have a set of different different
8
00:00:44,420 --> 00:00:45,460
types of crowds.
9
00:00:46,130 --> 00:00:54,370
So, for example, let's say we have an admin panel and these are furious few rounds of DOT admin panel.
10
00:00:55,040 --> 00:01:00,040
And he'll also be have the second admin panel that is focused on more.
11
00:01:00,560 --> 00:01:04,220
And inside this custom module, we have fuel roads.
12
00:01:05,510 --> 00:01:12,980
So as you can see here, inside these are here we have admin forwards, class, admin, forwards, class
13
00:01:13,220 --> 00:01:15,320
and admin forwards class.
14
00:01:15,680 --> 00:01:22,390
It means we have three rows in which the prefixes we have called admin forward class.
15
00:01:22,940 --> 00:01:28,130
These roads indicates that these are the roots of admin module.
16
00:01:28,520 --> 00:01:35,360
And also we can see that the same controller has been used while calling all these roads.
17
00:01:36,790 --> 00:01:42,550
So is this the better way to clear all the roads which have a common prefix?
18
00:01:42,880 --> 00:01:43,900
No, it's not.
19
00:01:44,360 --> 00:01:53,680
We can use the prefix concept so that we can create a group in which we will specify the prefix like
20
00:01:53,680 --> 00:01:56,860
admin force and inside callback function.
21
00:01:57,140 --> 00:02:03,280
We will specify all the roads, what we are seeing here, not inside this Costco model.
22
00:02:03,610 --> 00:02:10,500
Also, we can see that we have a prefix, something called customer for its last customer for class
23
00:02:10,720 --> 00:02:12,970
and customer for class.
24
00:02:13,510 --> 00:02:18,970
Inside each of the road, we're using the same controller called customer controller.
25
00:02:19,630 --> 00:02:24,340
So Forte's also will create a group inside that group.
26
00:02:24,670 --> 00:02:28,330
We will specify a prefix called Customer First Class.
27
00:02:28,720 --> 00:02:33,280
And inside that callback function, we will use all of these roads.
28
00:02:34,380 --> 00:02:41,520
So after going with these roads, when we open our application into the browser, so for this admin
29
00:02:41,520 --> 00:02:50,160
roles, how can we open into browser SCDP here we have one two seven zero DOT one.
30
00:02:50,490 --> 00:02:53,730
This is for the localhost eight thousand port.
31
00:02:57,330 --> 00:03:04,560
Here we have eight thousand poured, and after that we should have the admin prefix ANNA-LIISA for the
32
00:03:04,560 --> 00:03:12,270
first out, that is, create hype and use her copy and paste this not as opposition to this is Kolon.
33
00:03:12,600 --> 00:03:17,640
So this is the first you are what will use to operate with this functionality.
34
00:03:17,970 --> 00:03:24,280
Now, if you go and copy to base two more times, this is for list users.
35
00:03:24,290 --> 00:03:30,580
So if I copy paste, you added user copy and paste to you.
36
00:03:31,020 --> 00:03:37,730
So as you can see that inside these walls we have the common free picks as admin for.
37
00:03:39,390 --> 00:03:46,560
Now we are going to see inside the slide that what is the better way to create the prefix?
38
00:03:46,560 --> 00:03:47,220
Trotz.
39
00:03:47,940 --> 00:03:55,440
So if we go inside the step now, as you can see that this is structure and this is structure of roots
40
00:03:55,620 --> 00:04:04,560
now modified into some we like here we have a root prefix is the method inside this Batard rewriting
41
00:04:04,560 --> 00:04:12,800
our prefix ne got admin here we have three times and this time we have only a single time.
42
00:04:13,470 --> 00:04:18,680
Now inside this we are creating a group group indicates the group of roots altered.
43
00:04:18,690 --> 00:04:20,850
We had discussed inside last video.
44
00:04:21,240 --> 00:04:28,200
Now inside this callback function, we have three different roads as we can see, but this time only
45
00:04:28,200 --> 00:04:31,470
we are adding a prefix only for single time.
46
00:04:32,640 --> 00:04:35,280
Now we can access all these roads.
47
00:04:35,280 --> 00:04:41,030
What we are seeing here in the same way inside this configuration as well.
48
00:04:41,760 --> 00:04:49,950
Now here for the customer roads here out prefix here we have the module name, all the prefix name,
49
00:04:49,950 --> 00:04:51,390
call customer.
50
00:04:52,050 --> 00:04:58,620
After that, here we have a group and inside this group rewriting our group of roads.
51
00:04:59,280 --> 00:05:07,020
And in the same way we can call all the roads what actually will use the calling facility for these
52
00:05:07,020 --> 00:05:07,620
roads.
53
00:05:10,240 --> 00:05:19,180
So if I go back to prosecutor going say this ought to be fight --, going say that we have
54
00:05:19,180 --> 00:05:22,460
a perfect smattered, simply reiterate the prefix here.
55
00:05:22,810 --> 00:05:26,410
Now, next, Reid to use group.
56
00:05:27,070 --> 00:05:31,660
And inside this group simply we can create a callback function.
57
00:05:32,080 --> 00:05:38,110
And inside this callback function, we can create our group of roads inside that.
58
00:05:38,740 --> 00:05:48,910
In the second alternative syntax simply later wrote, We will create a group and inside this group simply
59
00:05:48,910 --> 00:05:58,080
we can make an array and we can tell that prefix read, write the prefix name here in the second read
60
00:05:58,090 --> 00:06:07,420
to create a callback function and we can write all the roads inside that these two syntax on exactly
61
00:06:07,420 --> 00:06:12,100
the same, but inside the ski's writing prefix in front of group.
62
00:06:12,370 --> 00:06:18,580
But inside this case we are not using prefix method, but we are writing prefix Keywood inside this
63
00:06:18,580 --> 00:06:19,100
area.
64
00:06:19,870 --> 00:06:23,410
So this is all about road prefix and Laravel.
65
00:06:24,490 --> 00:06:26,830
Now what is route group all did.
66
00:06:26,830 --> 00:06:34,240
We had discussed that when we are creating a group in which we are grouping multiple routes into a single
67
00:06:34,240 --> 00:06:41,890
block, those conditions or those situations when we create our outgroups is known as group of routes
68
00:06:41,890 --> 00:06:44,080
or road groups of application.
69
00:06:44,590 --> 00:06:52,210
Suheil inside last you already we had discussed that if suppose we have group of routes and when we
70
00:06:52,210 --> 00:06:58,090
want to apply the Middleville simply we can write all the roads inside this callback function.
71
00:06:58,390 --> 00:07:06,790
And if we want to apply any group Mitchellville simply instead of prefix lytes type Middleville.
72
00:07:09,670 --> 00:07:19,270
Creating any and Hill read to pass the middle name, why we have created this area because we can protect
73
00:07:19,270 --> 00:07:28,990
a group of roads by using multiple middle, because it means a group of roads or simply say a single
74
00:07:28,990 --> 00:07:33,440
road can be protected from one or more than one Middleville.
75
00:07:34,090 --> 00:07:41,260
So here inside this group, the middle, where we have a supply, that is first Middleville if we have
76
00:07:41,650 --> 00:07:47,620
the second Middleville and we want to protect all these roads of this group by the help of this first
77
00:07:47,620 --> 00:07:52,140
Middleville and second Middleville, obviously we can apply here.
78
00:07:53,130 --> 00:08:00,540
So if I go back to slide, so this is all about the discussion of the second slide now in the next slide
79
00:08:00,990 --> 00:08:02,880
here we are creating a group of roads.
80
00:08:03,240 --> 00:08:10,170
And inside this group of routes, simply, we are applying the middle vehicle first and second on these
81
00:08:10,170 --> 00:08:11,550
roads now.
82
00:08:11,560 --> 00:08:14,460
This time we have another Syntex.
83
00:08:14,760 --> 00:08:20,950
If we compare the syntax from what we had seen inside this report, BHP is something different.
84
00:08:21,510 --> 00:08:29,820
The difference is that inside this syntax, we're using Mehterlam method, but inside the syntax, we're
85
00:08:29,820 --> 00:08:31,590
using group method.
86
00:08:32,490 --> 00:08:39,630
But inside this group method, we're using middleware as a key and we're passing all the metal views.
87
00:08:40,350 --> 00:08:46,950
Syntax is different, but the use and consumption of all these methods will be exactly the same.
88
00:08:47,730 --> 00:08:52,260
So this is, guys, how can we use her outgroup and prefixes?
89
00:08:52,440 --> 00:09:00,870
And Laravel, not from the next fit, you will use the development of normal APIs so far this position
90
00:09:00,870 --> 00:09:03,300
casting for watching and have agreed to.
9920
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.