All language subtitles for 4. About Application Model

af Afrikaans Download
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,520 --> 00:00:06,730 OK, guys, welcome to the course of Level eight EP Dalip material, this is part six. 2 00:00:07,000 --> 00:00:11,970 Inside this feature, you will see the concept of modules inside Laravel. 3 00:00:12,880 --> 00:00:19,750 So if I go back to full day structure, in the last video we had discussed the concept about migration's 4 00:00:20,320 --> 00:00:25,390 so if I go inside Database's Migration's Fulda, so inside last for you too. 5 00:00:25,750 --> 00:00:33,310 This is a migration file that we had created and also we have updated inside this schema method. 6 00:00:33,940 --> 00:00:42,730 We have added a few columns like Naem email, ID, phone number and Tanta and successfully we have migrated 7 00:00:42,730 --> 00:00:49,830 this principle into database, not inside this feed you will see the concept of modules. 8 00:00:50,320 --> 00:00:58,660 So what basically models are so models are those file inside Lavall application, which is going to 9 00:00:58,660 --> 00:01:03,310 interact with the database tables by naming convention. 10 00:01:03,580 --> 00:01:08,260 As you can see here, the table name college students is plural. 11 00:01:08,800 --> 00:01:15,230 But when we create a model of these students table, the name of the model should be singular. 12 00:01:16,210 --> 00:01:20,140 So if I open a glitzier slider. 13 00:01:25,980 --> 00:01:33,600 So by naming convention, if we're creating tables inside Laville, that should be plural, so as you 14 00:01:33,600 --> 00:01:36,450 can see that we had created a table college students. 15 00:01:36,870 --> 00:01:44,250 But inside this, you will create a model which is going to interact with this estrogen's table and 16 00:01:44,250 --> 00:01:47,740 the name servicing local student. 17 00:01:48,420 --> 00:01:56,070 So when we create a model, the singular name automatically will understand that this model is going 18 00:01:56,070 --> 00:01:58,560 to connect with this plural name. 19 00:01:59,010 --> 00:02:05,910 Something like a student is connected with their students typically if suppose we have like employee 20 00:02:05,910 --> 00:02:06,480 stable. 21 00:02:08,040 --> 00:02:14,400 So when you create a model with the name something lets the employee automatically label buying this 22 00:02:14,400 --> 00:02:14,940 model. 23 00:02:15,030 --> 00:02:16,620 Pietistic is typically. 24 00:02:18,100 --> 00:02:25,240 But what will happen if suppose we have a different name and we have a different model name, so don't 25 00:02:25,240 --> 00:02:29,920 worry at all, because inside our model we have some member variables. 26 00:02:30,190 --> 00:02:34,520 So inside our model, we have a protected, stable variable. 27 00:02:34,900 --> 00:02:37,330 So by the help of that, they will variable. 28 00:02:37,670 --> 00:02:39,250 We will configure that. 29 00:02:39,250 --> 00:02:41,550 They will name inside that variable. 30 00:02:42,490 --> 00:02:46,690 So we will assign different able name with the different model name. 31 00:02:47,620 --> 00:02:49,810 So we will understand the scenario. 32 00:02:50,020 --> 00:02:55,980 In this case, the name is similar, model is similar, but the tibial name is plural. 33 00:02:56,530 --> 00:03:02,680 So inside this application, as we know that we have a model means we have a table college students. 34 00:03:02,920 --> 00:03:05,130 So we are going to create a model. 35 00:03:06,250 --> 00:03:12,610 So as we had this, because that models are those fires, which is going to interact with the database 36 00:03:12,610 --> 00:03:13,320 tables. 37 00:03:13,900 --> 00:03:22,210 So when we operate with any operations like rickitt, update, delete, read means by means of any operation 38 00:03:22,390 --> 00:03:25,450 to the database, then models should be used. 39 00:03:26,290 --> 00:03:33,850 Models are the response will file, which is going to connect application with the database and handles 40 00:03:34,060 --> 00:03:37,070 all about the input and output of data. 41 00:03:37,870 --> 00:03:45,370 So let's create a model so we will create a model inside Laville application by means of two ways. 42 00:03:45,700 --> 00:03:50,710 Either we can create the Manuell go inside app and models folder. 43 00:03:51,280 --> 00:03:56,410 When we create any model, it will go and is to inside these models folder. 44 00:03:57,760 --> 00:04:05,380 So this is the man will be by going to these models folder and creating a model file, but we will use 45 00:04:05,560 --> 00:04:06,970 the addition command. 46 00:04:07,900 --> 00:04:18,130 So if I type the command called BHP Addition pressing into now if we go inside this May command pallet 47 00:04:18,130 --> 00:04:23,950 here we have the section of MI command pallet now inside this May command here we have the command called 48 00:04:24,130 --> 00:04:30,210 Make Model, which is going to create a new element model class. 49 00:04:30,610 --> 00:04:37,310 So we will use this addition to make model command to create a new element model class. 50 00:04:37,960 --> 00:04:46,450 So what we with the syntax simplified type BHP addition, let's make model. 51 00:04:46,960 --> 00:04:50,070 And as we know that we have a table college students. 52 00:04:50,290 --> 00:04:53,590 So we need to create the singular name of that table. 53 00:04:53,860 --> 00:05:02,010 And that is something called student press enter model created successfully. 54 00:05:02,500 --> 00:05:08,820 So when we create any model, it will go on is to inside this app and models folder. 55 00:05:09,100 --> 00:05:10,330 So then we do this. 56 00:05:11,140 --> 00:05:19,840 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 57 00:05:19,840 --> 00:05:23,400 are some packages by default automatically inputted. 58 00:05:24,550 --> 00:05:32,890 So when we will do any query by means of students, they will we will use this student model to understand 59 00:05:32,890 --> 00:05:34,630 all about the variables. 60 00:05:34,640 --> 00:05:41,530 Hopefully for this model class, simply go inside this official website of Lorrel that is leavelle dot 61 00:05:41,530 --> 00:05:44,890 com click here in the inside documentation. 62 00:05:46,060 --> 00:05:52,330 Goodhue inside this eloquent Aughrim say simply click on that click on Getting Started. 63 00:05:52,690 --> 00:05:59,770 Now, all the detailed information about other member variables of any model class which is associated 64 00:05:59,770 --> 00:06:04,120 with later will name primary key and several variables. 65 00:06:04,510 --> 00:06:12,820 So simply to understand all the concept in detail, Kahir inside this, he first of all, down here 66 00:06:12,820 --> 00:06:15,000 we have eloquent model convention. 67 00:06:15,820 --> 00:06:18,190 Now, this is the model what we have seen. 68 00:06:18,550 --> 00:06:28,920 So in Keys ehp suppose we have a different Ebele simpy, we have a table productid variable inside model. 69 00:06:29,620 --> 00:06:32,820 So when we see this is the model called flight. 70 00:06:33,130 --> 00:06:38,110 So by naming convention the debelin should be plural, which is flights. 71 00:06:38,650 --> 00:06:42,060 But inside the case the table name is something different. 72 00:06:42,790 --> 00:06:53,020 So by specifying this table variable as a protected access file, we can pass our own Tibaldi now next 73 00:06:53,350 --> 00:06:54,220 by default. 74 00:06:54,460 --> 00:07:02,080 Lavall understand that when we create any table, the primary keys by default, the idea column of that 75 00:07:02,080 --> 00:07:02,690 table. 76 00:07:03,010 --> 00:07:11,050 So here inside existence, as we know that by default it is a primary key and auto increment button 77 00:07:11,050 --> 00:07:17,290 keys, Litsa, that we have some different table in which the idea is something like student under. 78 00:07:18,270 --> 00:07:19,690 Employ under it. 79 00:07:19,980 --> 00:07:26,070 So how can we tell Laravel that this time we don't have Idy column as a primary key? 80 00:07:26,530 --> 00:07:28,940 We have something different Colonie. 81 00:07:29,850 --> 00:07:36,480 So as far as we had seen for the table so far for the primary key, we have one more variable called 82 00:07:36,480 --> 00:07:38,310 protected primary key. 83 00:07:38,550 --> 00:07:41,540 These are predefine member variables. 84 00:07:43,050 --> 00:07:49,500 So here inside this primary key simply we tried the name of the primary key, what we had done or specified 85 00:07:49,680 --> 00:07:50,870 inside of a table. 86 00:07:51,750 --> 00:07:59,120 So inside this documentation, we will see about each variables, Litsa, that this time this idea column 87 00:07:59,130 --> 00:08:02,220 is a primary key, which is a type of big end. 88 00:08:02,850 --> 00:08:09,810 But in keys, in some tables, if we have the column, which is primary key of a string type. 89 00:08:10,080 --> 00:08:16,200 So simply we have another variable inside model class that is protected, key type. 90 00:08:16,800 --> 00:08:24,150 And inside that key type, we need to pass the data type of the primary key swing states documentation. 91 00:08:24,570 --> 00:08:28,660 We can find the complete guide of eloquent model. 92 00:08:29,400 --> 00:08:35,430 So in the next few days you will see the concept of Cedar's by the help of Cetus file. 93 00:08:35,790 --> 00:08:39,740 We will need some dummy data inside our database table. 94 00:08:40,890 --> 00:08:47,820 So inside that the concept, we will use the concept of migration as well as the concept of model. 95 00:08:48,960 --> 00:08:52,350 So for this decision cast, thank you for watching and have a great. 10155

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.