Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
So vital to the course of Lavallade EPA Dalat material, this is part inside this feed you will start
all about EPA devlopment from our first Fage.
Now inside this first phase, we will see setup and application settings.
Also, we had discussed inside interaction with video of this course that is in the first stage will
create the normal APIs without any authentication.
So if I go back to slide, so normally this is our EPA dalam in phase one, it means without any authentication
we will create normal APIs.
As we know inside Laravel, we have the hopefully will authentications as JWT, passport and sanctum,
but we will use these authentications in later videos.
So inside this video or inside this first phase of EPA development, we will use our employees.
Diebel means we will create a migration model so we will have our employees stable inside that employee
stable.
We will have the columns as it ni email for no gender and age.
So basically we will install the employer's data inside this employee stable.
So for this first phase of EPA development, we will have the EPA's as yet employee update employee
list employee as well as, let's say, delete employee.
So inside this video, this is our first part of this API development phase when so we will do our projects
set setup as well as will do some application settings.
Up to last video, we had seen the all the basic concepts, what we use inside the schools.
So to create a little project simply I will cover this, compose a command, copy that back terminal.
And currently we're inside this little folder.
So I will simply be it here.
And let's add that this is Epper phase when this is Brossette name.
So what I will do is simply press enter.
It will take some time to install this folder Level eight setup and successfully, as you can see,
that project has been installed.
So if I if I go back to folder structure, here is the folder or EP when here are the files and folders.
So simply and open this API Phase one project into voice code.
And here it is now.
Next, we to connect this application with the database.
So if I backed browser, let's open up all about my to my admin login with the admin credentials.
Click here database's, let's create a database with the name something Epper Phase one.
So if I copy Heat database created right now, there is no table back to Ed to connect with the database.
Open up the file called Daughton V. It stands for Environment Variable Files.
Now, here inside is, as you can see, that we need to pass our database connection details.
So database we have called epiphytes when in my case the user name is admin and this is admin at one
to three.
It may be different in your case.
This is my BHB, my admin username and password.
So successfully novia connected with the database.
Now let's create a controller which is going to handle all the operations of Epper.
So if I back to terminal, first of all, it's clear this console CD thing, this is the folder what
we had installed only to that feeling to create a controller.
Right now this is application is a front installation of Laravel.
So what I will do little dot inside is our folder activity folder controllers folder.
Here we have controller dot PSP.
So what I will do is simply to say to our Olelbis auto store, the EPA control will create a folder
inside this controllers folder.
It means we will have EPA full here inside that folder.
We will have EPA control file and all the operations.
What we had discussed like create, read, update and delete API, all those matters we will place inside
EPA, Canterlot Dot file.
So if I pack the terminal, let's use the addition command to create controller files of PSP addition
Mieke Controller and we want our EPA folder inside controllers folder.
So EPA backwards and inside this we will call it as the file as EPA controller H.V..
So if I copy the whole command, what I typed here back to slide based in detail and this is the command,
what we have used.
So if we go to terminal press enter Condola created successfully back to Ed, go and reload.
And I think that the syntax that we have used to create EPA controls inside EPA Fulda is not correct
because this time, instead of getting Fulda inside it, we are getting actual EPA EPA controller.
So first of all, it's delete that.
But again and the same, come on, we are going to use, but this time we will use the forward SLAs
if I back to slice only what we had done.
We have used this force last year.
Now save the exchange use to terminal press enter Condola created successfully back to Edita.
Go until you decide to restructure.
Now as you can see that inside this app, S2P Controllers Valuating or EPA folder inside this folder
we have now our EPA control file.
So inside this controller file, we will write all the matters, which is going to do create EPA list
API, delete and update EPA.
So first of all, let's create those matters first.
So public function, it's a great employee because we're going to move in with the employee example
here.
If I write a single line comment that is pre-heat API now next week to create another methode, something
called public function, let's say liste employees.
If I write one line comment again, this is a list API, if I scroll down to create another matter.
It's a public function, get a single employee.
And if I type again, one line, currently, it's a single detail, FBI.
Now the next two matters, we want something update Epper as well as delete epistle.
It's a public function update employee.
So here's the comment call.
This is Update Epper and the final EPA.
We want the controller inside this controller file that is for the delete operations.
So public function, it's a delete employee.
And again, having to type one line comment, that is this is something delete API.
So now inside this EPA controller, these are the EPA's going to create something yet EPA List API for
showing or displaying single detail of employee update API as well as delete API.
Now, next, we are going to pass some parameters inside this.
Motherhood's like for this discrete employee, what barometer's we want.
So while creating employee, we want to request instance.
So here we have we are using request glass.
So I will pass it here and we will use request instant's.
So when we hit this API, when we hit this method simply, we will pass our body parameters as well
as the header section.
So how can we access those values for request by using this request and stands so simply we to use inside
this method.
Now next inside this list, employees, we don't want any request barometer's because this is the EPA.
Simply it will display all the employees what we have inside our table.
Now, next here we have this single employee, Suheil, what we want.
So inside this gate, single employee Epper simply to pass the employee ID and by the help of that employee
ID be able to drive the data from table.
So simply here we need to pass the ID now.
Scroll down here we have the data.
So for the DTP, what we want, we want updated data inside our request.
Instant's means requested body barometer's as well as the ID value ID because on the behalf of its value,
we will update data.
So inside this update employee method, we need a request here, will have the request and stands.
By the help of that, we will read all the body parameters.
And next, we need an ID value via this ID because by the help of this ID value what we are passing
here, we will update our table data by the help of request body parameters.
And finally, we have so for the delete employee, we need only the employee ID.
So here we will write the ID.
So these are the parameters of what we have passed according to need inside all these EPA matters.
So in the next video we will create Routt model and the migration file so far this photo session.
Guys, thanks for watching and have a great.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.