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
OK, guys, welcome to the course of Lavallade Epitaph material, this is part of a 19 inside feed.
You will see the concept of model and controller settings.
If I go back to Ed, in the last video, we had created two tables called Project, as well as students.
Now we need to create models.
The models are those fires, which is going to interact with these tables.
So to create model, probably use additions.
Come on.
So back to terminal BHP Artesian Mique model and will create first, let's say, student model Aspro,
the naming convention.
Also, we had discussed earlier that the table names should be always plural, but the modelling should
be singular so we can make model and for the students table, the model we should have called student
pressing into model created successfully BHB addition make model and for the project stable.
The model we have called Brossette if a pressing enter now we had created all two model files.
If I back to Edita reload that data structure going set up models and here we have that model as well
as student model.
So if we click on this student to be free to set the table flexcel it's a protected table.
We're using students table for this student model or by default, this model will pick this table name.
Now, next, as we know that in the migration file or inside our database table, we're not using any
timestamp columns.
So inside this model we need to configure or we need to tell that we are not using timestamps.
So let the public timestamps.
Equals to force and here we need to specify one more property that is available for the last assignment,
fillable inside this area, we need to put the column names of students tables to name email password.
And we have called for an school.
No, I will copy all these settings.
What we have done with this student model go inside is supposed to be and pasting those settings here.
Now, according to the need of this project model change that they believe called project, the column
name we have called the project name here.
We should have the student I.D. next.
We have.
Description and one more column we have called duration, and also inside this table, we don't have
any type of style value.
So it's all okay here.
Now, we have done successfully the settings of model of this student as well as this project model.
So after doing all this model stuff, now we need to go and take over on the actions of control file.
So to create control again, we will use go inside this folder, ATP folder, inside comptrollers folder,
we will create a folder called API.
Inside this EPA folder will create Alvo needed API files.
So to create epicondyle of files back to terminal BHP optician Mique Control and we need all the control
files should be placed inside or Epper folder.
So here Epper EPA next you to pass.
Let's say first of all Student Controller or simply we will call it as art controller.
Let's say we are calling it as student controller, pressing enter controller created successfully if
I back to Edita go and reload.
So now inside this controllers folder here we have Epper and this is all about student controller file.
Now in the same, we need to create project controller so PSP Aatish and make controller a queen bee
to create the controller inside Epper Fold.
Also Epper list the project controller if you press enter controller created successfully Gwendolen
this and now it is EPF.
Although we have two files inside assistant controller, we need that you method a logging method profile
method as well as a logout method inside esposa controller.
We need methods for creating a Prosek listing a project on the basis of a student ID and Pursat ID listing
all the projects on the basis of student ID as well as we will see Prusak deletion two.
So this is the video to demonstrate all about model settings and creating our API controllers in the
next week.
You fool work over the methods of this student controller as well as Persad controller.
So far this decision.
Guys, thank you for watching and have a great day.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.