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, back into the course of Lavallade EPA material, this is part Zahran inside this feed, you will
see the concept of Data CEDO.
If I backed Satur in the last videos, we had discussed the concept of migration as well as the concept
of model.
So by using the concept of model and the migration table, now at this time we will see some dummy data
inside of a student's table.
So if I go back to Groza, this is our database.
And inside this database, we had created this student stable.
Right now there is no entry inside this table.
Now we want some dummy data inside this student's table.
So to do any entry, we have two options.
Either we can click on this insert after clicking on that to pass the Manuell values and click on Cooperton.
But it is OK when we are inserting, let's say, five or ten number of rows.
But in case if we want to insert Posehn Tontos enough number of rules.
So in that situation, this trick will not work.
So inside that situation we will use the concept of CEYDA.
So by the help of Data Zero concept, we can seed dummy data inside any of the table inside Lowville
application.
So inside this table, college student, the structure is something we want and value.
Email each phone number and Chantal because it has three columns it created out and updated had for
these two columns.
We have the by default value as the null value and this is primary key and also it is auto increment.
So we want only five mins value for five number of columns.
So how can we start with this concept back to full the structure?
So when we create any acidify which is going to help us to see Domy data, it will go on to inside this
database.
And we have three folders.
So inside database we have three folders about this migration's we understood inside last videos.
Now inside this folder, we have to move all those called factories and Cedar's.
So factories are similar to store.
When we create any factory file, it is also going to see Donly data inside Diebel.
So by the helper factory concept as he does concept begins, he does data inside our table.
So we will see the first all about the concept of factory to seed dummy data.
So if I backed terminal when we tied the command, call BHP additions inside me command pallet, we
will have the command call if we go inside this make and pallet.
As you can see, we have the command call Mieke Factory, so it will create a new model factory.
So by the help of concept of factory and model, factory is going to produce the dummy data by the help
of Fakher Larry and then by the help of this model, it will insert all those Domy details inside this
table.
So Forte's, we have an article sugo inside this blogging website, articles Lavallade and click on
the search bar if you type, let's say CEDO in Laravel.
So if I press enter.
Click on this article, as you can see here now inside this article.
We have the concept of using factory Amphicar, Larry, with the model to seat dummy data.
So if I scroll down.
We have the complete detailed concept inside this article, so we will use the factory, so here you
can see that using factory file to see data inside Laravel.
So firstly, we need to generate our factory file.
So BHP additions make factory.
This is the syntax what we had seen inside this terminal command.
Now, next, we need to pass the factory name and we will create this factory for 220 will.
So simply in our case, we are just moving with the example of students and we had created inside Lostpedia
the student model.
So this command is totally perfect.
So copied that come on, go here.
We are currently inside this Lifan EPA folder.
We are creating a factory with the name student factory model student suppressing inter factory created
successfully.
So if I go back to our project folder, go inside database factories and here we have the file called
Student Factory.
So by default, inside this definition method, we are returning an empty array.
So inside this area we need to specify all the columns, what we have inside of a student model table.
So this is turntable model pointing towards students database table.
So simply we need to specify all those five columns inside this return area.
So if we go here and simply if I copy the whole code of this definition method, go, he'll be sitting
here.
Now, what are the columns we want?
We want something.
Naem email ege.
So here you can see that name email.
Here we have the age narced.
We want phone number so I will copy this column name replace with this mobile next.
We have to call Magento already here.
We have inside this Genta the available values we have called male and female.
So we don't want any more with this other option.
And also we don't have this address in fulfilled.
And one more thing that this figure is the by default feature that we are using of this model set setup
by the help of this figure instance via using some properties and methods, as you can see, namely
the method save email for no other member variables.
And this vehicle is an instance of Fakher Library.
By the help of Figure Laborie, we can create fake data.
So simply all we had done the setup of this student factory.
Now, next, what we have to do, we to go inside our database, see the dot file.
So simply go.
He'll go inside the Cedar's database, Sido and inside this database, it'll simply want to copy this
command Kahil pasting it here.
So here what we are doing simply this is the student model inside.
Last we do what we had created.
So by the help of this model we are calling our factory file and by the help of factory file we are
generating hundred number of dummy rows.
Now, next, what we have to do simply back to terminal.
We need to allow our factory file so for that reason to run our database file so we have a command which
is going to run our database file.
So commanding something, BHB addition DB seed.
So if I press enter.
As we can see, that databased completed successfully.
If I go back to Brossel, go inside the stable, click on Broz and here we're getting all about hundred
number of rows with the fake name, fake email, fake each value, fake phone number and fake gender
value.
So this is all about guys.
That is, how can we use factory to see dummy data inside our database table.
Now next we'll use the concept of CEDO and see that by the help of a set file.
How can we seed dummy data back to blog article if we go up?
So here using fake Ollaberry inside of file.
So we took it, forced us to file.
So how can we create a free time to command called the HP optician, go inside me command pallette and
inside me.
Come on, pallette.
We should see a command called Mixi Door.
This command is going to create a new class, so we want to see the dummy data for students table.
So what I will do, it's a BSP addition.
Make cedo it's a student Seada suppressing enter seat created successfully.
So if I go back to project Zeta Relu that coincide DBRS Setas and here's we can see that we're getting
and I think that I misspelled all about the spelling.
So don't worry at all.
This is to consider what we have created.
So right now, inside this one methode, we don't have any code.
So back to our article.
So what I will do simply if I copied the whole code go inside is run method and pasting it here.
So first of all, we are using this DB class, so if we need to import, so use DB.
This DB class is coming from facades and by the help of this DB we can use the query built approach.
And here, as we can see that we are creating the Frico instance, as we told earlier, that the Faycal
is a beautiful library, hopefully will inside this allow it application to generate fake data.
So simply we are using this, for instance.
Now here we are using the variable to approach the Diebel students inside this table.
We want dummy data insert method and here we are creating an array.
So inside this area, we have the columns, Neame Emy and the next column we have something for an underscore.
No each gender and we don't have like address info.
So I will remove and also we have DAUn option all about others.
So we have created this student sort of I'll know next.
How can we run or execute this file?
So we have two options.
Either we can load this class inside this file or simply bypassing a class flag if we can tightly run
this file inside our terminal.
So if we want to load this class inside this file, simply what we have to do, we be to use this call
method.
And inside this call method, we need to pass our class name.
So we have the class name as students.
Hedo.
And if he had done that, so by the help of Todd Akin, we run the command called Operation Deep Seed,
so when we execute that go on, it will automatically call this fire and run this run method.
Now, the next approach, if we want to execute this file directly, we need to pass the last flag inside
our command.
So if I copy this, come on back to terminal, as we can see that partition deceit class and inside
this class, we need to pass the class name.
So inside this case, this is the class name.
So I will copy remove here, pasting it to you.
Now, if you go inside this table, let's start by key into descending order.
So inside this table, the last column we die.
Dekel hundred.
So if we go and pressing enter databased in completed successfully now by the help of this class actually
we have done one more entry inside this table.
So if we go and reload this table.
Now, as you can see, that we're getting one zero one idee with the new entry, and this is by the
help of Seedorf file.
So far, this decision, guys, 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.