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
French
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 Level eight EP Dalip material, this is part six.
Inside this feature, you will see the concept of modules inside Laravel.
So if I go back to full day structure, in the last video we had discussed the concept about migration's
so if I go inside Database's Migration's Fulda, so inside last for you too.
This is a migration file that we had created and also we have updated inside this schema method.
We have added a few columns like Naem email, ID, phone number and Tanta and successfully we have migrated
this principle into database, not inside this feed you will see the concept of modules.
So what basically models are so models are those file inside Lavall application, which is going to
interact with the database tables by naming convention.
As you can see here, the table name college students is plural.
But when we create a model of these students table, the name of the model should be singular.
So if I open a glitzier slider.
So by naming convention, if we're creating tables inside Laville, that should be plural, so as you
can see that we had created a table college students.
But inside this, you will create a model which is going to interact with this estrogen's table and
the name servicing local student.
So when we create a model, the singular name automatically will understand that this model is going
to connect with this plural name.
Something like a student is connected with their students typically if suppose we have like employee
stable.
So when you create a model with the name something lets the employee automatically label buying this
model.
Pietistic is typically.
But what will happen if suppose we have a different name and we have a different model name, so don't
worry at all, because inside our model we have some member variables.
So inside our model, we have a protected, stable variable.
So by the help of that, they will variable.
We will configure that.
They will name inside that variable.
So we will assign different able name with the different model name.
So we will understand the scenario.
In this case, the name is similar, model is similar, but the tibial name is plural.
So inside this application, as we know that we have a model means we have a table college students.
So we are going to create a model.
So as we had this, because that models are those fires, which is going to interact with the database
tables.
So when we operate with any operations like rickitt, update, delete, read means by means of any operation
to the database, then models should be used.
Models are the response will file, which is going to connect application with the database and handles
all about the input and output of data.
So let's create a model so we will create a model inside Laville application by means of two ways.
Either we can create the Manuell go inside app and models folder.
When we create any model, it will go and is to inside these models folder.
So this is the man will be by going to these models folder and creating a model file, but we will use
the addition command.
So if I type the command called BHP Addition pressing into now if we go inside this May command pallet
here we have the section of MI command pallet now inside this May command here we have the command called
Make Model, which is going to create a new element model class.
So we will use this addition to make model command to create a new element model class.
So what we with the syntax simplified type BHP addition, let's make model.
And as we know that we have a table college students.
So we need to create the singular name of that table.
And that is something called student press enter model created successfully.
So when we create any model, it will go on is to inside this app and models folder.
So then we do this.
I can go and as we can see that we have a file called Student Dot VSP in which we have a class and there
are some packages by default automatically inputted.
So when we will do any query by means of students, they will we will use this student model to understand
all about the variables.
Hopefully for this model class, simply go inside this official website of Lorrel that is leavelle dot
com click here in the inside documentation.
Goodhue inside this eloquent Aughrim say simply click on that click on Getting Started.
Now, all the detailed information about other member variables of any model class which is associated
with later will name primary key and several variables.
So simply to understand all the concept in detail, Kahir inside this, he first of all, down here
we have eloquent model convention.
Now, this is the model what we have seen.
So in Keys ehp suppose we have a different Ebele simpy, we have a table productid variable inside model.
So when we see this is the model called flight.
So by naming convention the debelin should be plural, which is flights.
But inside the case the table name is something different.
So by specifying this table variable as a protected access file, we can pass our own Tibaldi now next
by default.
Lavall understand that when we create any table, the primary keys by default, the idea column of that
table.
So here inside existence, as we know that by default it is a primary key and auto increment button
keys, Litsa, that we have some different table in which the idea is something like student under.
Employ under it.
So how can we tell Laravel that this time we don't have Idy column as a primary key?
We have something different Colonie.
So as far as we had seen for the table so far for the primary key, we have one more variable called
protected primary key.
These are predefine member variables.
So here inside this primary key simply we tried the name of the primary key, what we had done or specified
inside of a table.
So inside this documentation, we will see about each variables, Litsa, that this time this idea column
is a primary key, which is a type of big end.
But in keys, in some tables, if we have the column, which is primary key of a string type.
So simply we have another variable inside model class that is protected, key type.
And inside that key type, we need to pass the data type of the primary key swing states documentation.
We can find the complete guide of eloquent model.
So in the next few days you will see the concept of Cedar's by the help of Cetus file.
We will need some dummy data inside our database table.
So inside that the concept, we will use the concept of migration as well as the concept of model.
So for this decision cast, thank you 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.