Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,460 --> 00:00:08,470
So vital to the course of Lavallade EPA Dalat material, this is part inside this feed you will start
2
00:00:08,470 --> 00:00:11,590
all about EPA devlopment from our first Fage.
3
00:00:12,160 --> 00:00:16,840
Now inside this first phase, we will see setup and application settings.
4
00:00:17,650 --> 00:00:23,380
Also, we had discussed inside interaction with video of this course that is in the first stage will
5
00:00:23,380 --> 00:00:27,010
create the normal APIs without any authentication.
6
00:00:27,730 --> 00:00:36,340
So if I go back to slide, so normally this is our EPA dalam in phase one, it means without any authentication
7
00:00:36,580 --> 00:00:39,070
we will create normal APIs.
8
00:00:39,760 --> 00:00:47,050
As we know inside Laravel, we have the hopefully will authentications as JWT, passport and sanctum,
9
00:00:47,440 --> 00:00:51,510
but we will use these authentications in later videos.
10
00:00:52,810 --> 00:00:58,980
So inside this video or inside this first phase of EPA development, we will use our employees.
11
00:00:58,990 --> 00:01:06,340
Diebel means we will create a migration model so we will have our employees stable inside that employee
12
00:01:06,340 --> 00:01:06,810
stable.
13
00:01:07,000 --> 00:01:13,540
We will have the columns as it ni email for no gender and age.
14
00:01:13,750 --> 00:01:19,380
So basically we will install the employer's data inside this employee stable.
15
00:01:20,260 --> 00:01:27,490
So for this first phase of EPA development, we will have the EPA's as yet employee update employee
16
00:01:27,760 --> 00:01:31,350
list employee as well as, let's say, delete employee.
17
00:01:32,470 --> 00:01:39,180
So inside this video, this is our first part of this API development phase when so we will do our projects
18
00:01:39,250 --> 00:01:43,090
set setup as well as will do some application settings.
19
00:01:43,840 --> 00:01:50,140
Up to last video, we had seen the all the basic concepts, what we use inside the schools.
20
00:01:50,770 --> 00:01:59,080
So to create a little project simply I will cover this, compose a command, copy that back terminal.
21
00:01:59,320 --> 00:02:01,900
And currently we're inside this little folder.
22
00:02:02,470 --> 00:02:04,620
So I will simply be it here.
23
00:02:04,870 --> 00:02:10,870
And let's add that this is Epper phase when this is Brossette name.
24
00:02:11,170 --> 00:02:13,590
So what I will do is simply press enter.
25
00:02:14,830 --> 00:02:21,340
It will take some time to install this folder Level eight setup and successfully, as you can see,
26
00:02:21,340 --> 00:02:23,160
that project has been installed.
27
00:02:23,530 --> 00:02:30,940
So if I if I go back to folder structure, here is the folder or EP when here are the files and folders.
28
00:02:31,990 --> 00:02:36,490
So simply and open this API Phase one project into voice code.
29
00:02:36,850 --> 00:02:39,940
And here it is now.
30
00:02:39,940 --> 00:02:43,570
Next, we to connect this application with the database.
31
00:02:44,020 --> 00:02:52,240
So if I backed browser, let's open up all about my to my admin login with the admin credentials.
32
00:02:55,610 --> 00:03:01,520
Click here database's, let's create a database with the name something Epper Phase one.
33
00:03:02,090 --> 00:03:11,920
So if I copy Heat database created right now, there is no table back to Ed to connect with the database.
34
00:03:11,930 --> 00:03:17,340
Open up the file called Daughton V. It stands for Environment Variable Files.
35
00:03:18,020 --> 00:03:23,480
Now, here inside is, as you can see, that we need to pass our database connection details.
36
00:03:23,870 --> 00:03:33,140
So database we have called epiphytes when in my case the user name is admin and this is admin at one
37
00:03:33,140 --> 00:03:33,740
to three.
38
00:03:34,160 --> 00:03:36,320
It may be different in your case.
39
00:03:36,620 --> 00:03:40,520
This is my BHB, my admin username and password.
40
00:03:41,180 --> 00:03:44,230
So successfully novia connected with the database.
41
00:03:44,870 --> 00:03:50,060
Now let's create a controller which is going to handle all the operations of Epper.
42
00:03:50,450 --> 00:04:00,740
So if I back to terminal, first of all, it's clear this console CD thing, this is the folder what
43
00:04:00,740 --> 00:04:04,590
we had installed only to that feeling to create a controller.
44
00:04:05,630 --> 00:04:10,000
Right now this is application is a front installation of Laravel.
45
00:04:10,700 --> 00:04:16,760
So what I will do little dot inside is our folder activity folder controllers folder.
46
00:04:16,770 --> 00:04:18,760
Here we have controller dot PSP.
47
00:04:19,100 --> 00:04:26,510
So what I will do is simply to say to our Olelbis auto store, the EPA control will create a folder
48
00:04:26,630 --> 00:04:28,500
inside this controllers folder.
49
00:04:28,940 --> 00:04:33,670
It means we will have EPA full here inside that folder.
50
00:04:33,830 --> 00:04:38,270
We will have EPA control file and all the operations.
51
00:04:38,390 --> 00:04:45,710
What we had discussed like create, read, update and delete API, all those matters we will place inside
52
00:04:45,860 --> 00:04:48,060
EPA, Canterlot Dot file.
53
00:04:48,710 --> 00:04:56,930
So if I pack the terminal, let's use the addition command to create controller files of PSP addition
54
00:04:57,140 --> 00:05:03,280
Mieke Controller and we want our EPA folder inside controllers folder.
55
00:05:03,300 --> 00:05:11,090
So EPA backwards and inside this we will call it as the file as EPA controller H.V..
56
00:05:11,690 --> 00:05:21,020
So if I copy the whole command, what I typed here back to slide based in detail and this is the command,
57
00:05:21,140 --> 00:05:22,520
what we have used.
58
00:05:23,630 --> 00:05:31,250
So if we go to terminal press enter Condola created successfully back to Ed, go and reload.
59
00:05:34,990 --> 00:05:41,890
And I think that the syntax that we have used to create EPA controls inside EPA Fulda is not correct
60
00:05:42,160 --> 00:05:48,400
because this time, instead of getting Fulda inside it, we are getting actual EPA EPA controller.
61
00:05:48,820 --> 00:05:50,770
So first of all, it's delete that.
62
00:05:52,660 --> 00:05:59,520
But again and the same, come on, we are going to use, but this time we will use the forward SLAs
63
00:05:59,680 --> 00:06:03,010
if I back to slice only what we had done.
64
00:06:04,300 --> 00:06:06,690
We have used this force last year.
65
00:06:07,450 --> 00:06:15,280
Now save the exchange use to terminal press enter Condola created successfully back to Edita.
66
00:06:15,670 --> 00:06:17,630
Go until you decide to restructure.
67
00:06:17,920 --> 00:06:27,010
Now as you can see that inside this app, S2P Controllers Valuating or EPA folder inside this folder
68
00:06:27,280 --> 00:06:30,080
we have now our EPA control file.
69
00:06:30,850 --> 00:06:37,330
So inside this controller file, we will write all the matters, which is going to do create EPA list
70
00:06:37,330 --> 00:06:40,700
API, delete and update EPA.
71
00:06:41,380 --> 00:06:44,260
So first of all, let's create those matters first.
72
00:06:45,700 --> 00:06:54,300
So public function, it's a great employee because we're going to move in with the employee example
73
00:06:55,570 --> 00:06:55,900
here.
74
00:06:55,930 --> 00:07:06,040
If I write a single line comment that is pre-heat API now next week to create another methode, something
75
00:07:06,040 --> 00:07:10,240
called public function, let's say liste employees.
76
00:07:12,820 --> 00:07:22,060
If I write one line comment again, this is a list API, if I scroll down to create another matter.
77
00:07:22,090 --> 00:07:27,430
It's a public function, get a single employee.
78
00:07:31,490 --> 00:07:39,040
And if I type again, one line, currently, it's a single detail, FBI.
79
00:07:40,640 --> 00:07:46,460
Now the next two matters, we want something update Epper as well as delete epistle.
80
00:07:46,460 --> 00:07:52,410
It's a public function update employee.
81
00:07:54,290 --> 00:07:55,670
So here's the comment call.
82
00:07:55,670 --> 00:08:00,680
This is Update Epper and the final EPA.
83
00:08:00,680 --> 00:08:06,420
We want the controller inside this controller file that is for the delete operations.
84
00:08:06,420 --> 00:08:12,380
So public function, it's a delete employee.
85
00:08:13,610 --> 00:08:19,110
And again, having to type one line comment, that is this is something delete API.
86
00:08:19,820 --> 00:08:28,190
So now inside this EPA controller, these are the EPA's going to create something yet EPA List API for
87
00:08:28,190 --> 00:08:35,550
showing or displaying single detail of employee update API as well as delete API.
88
00:08:36,170 --> 00:08:40,700
Now, next, we are going to pass some parameters inside this.
89
00:08:40,700 --> 00:08:45,560
Motherhood's like for this discrete employee, what barometer's we want.
90
00:08:46,310 --> 00:08:50,650
So while creating employee, we want to request instance.
91
00:08:51,050 --> 00:08:53,590
So here we have we are using request glass.
92
00:08:54,020 --> 00:08:59,090
So I will pass it here and we will use request instant's.
93
00:08:59,420 --> 00:09:06,410
So when we hit this API, when we hit this method simply, we will pass our body parameters as well
94
00:09:06,410 --> 00:09:08,050
as the header section.
95
00:09:08,930 --> 00:09:16,760
So how can we access those values for request by using this request and stands so simply we to use inside
96
00:09:16,760 --> 00:09:17,670
this method.
97
00:09:19,010 --> 00:09:24,830
Now next inside this list, employees, we don't want any request barometer's because this is the EPA.
98
00:09:24,950 --> 00:09:29,330
Simply it will display all the employees what we have inside our table.
99
00:09:29,870 --> 00:09:35,840
Now, next here we have this single employee, Suheil, what we want.
100
00:09:36,890 --> 00:09:43,670
So inside this gate, single employee Epper simply to pass the employee ID and by the help of that employee
101
00:09:43,670 --> 00:09:46,470
ID be able to drive the data from table.
102
00:09:46,610 --> 00:09:51,210
So simply here we need to pass the ID now.
103
00:09:51,290 --> 00:09:53,120
Scroll down here we have the data.
104
00:09:53,870 --> 00:09:59,330
So for the DTP, what we want, we want updated data inside our request.
105
00:09:59,330 --> 00:10:08,420
Instant's means requested body barometer's as well as the ID value ID because on the behalf of its value,
106
00:10:08,570 --> 00:10:09,980
we will update data.
107
00:10:10,430 --> 00:10:17,510
So inside this update employee method, we need a request here, will have the request and stands.
108
00:10:18,530 --> 00:10:22,520
By the help of that, we will read all the body parameters.
109
00:10:22,820 --> 00:10:30,920
And next, we need an ID value via this ID because by the help of this ID value what we are passing
110
00:10:30,920 --> 00:10:36,530
here, we will update our table data by the help of request body parameters.
111
00:10:37,820 --> 00:10:44,210
And finally, we have so for the delete employee, we need only the employee ID.
112
00:10:44,210 --> 00:10:46,780
So here we will write the ID.
113
00:10:47,240 --> 00:10:53,270
So these are the parameters of what we have passed according to need inside all these EPA matters.
114
00:10:53,820 --> 00:11:00,650
So in the next video we will create Routt model and the migration file so far this photo session.
115
00:11:00,650 --> 00:11:02,720
Guys, thanks for watching and have a great.
12216
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.