Laravel 5.8 Tutorial From Scratch - e37 - Model Factories

preview_player
Показать описание
Model factories offer a very convenient way to add test data to our database during the development phase. Let's create a factory for our Company's table now.

DigitalOcean Referral

Resources
Course Source Code

About This Course

Ready to get started on your path to Laravel Artisan? In this series, we are breaking down all of the basics of Laravel to get you comfortable using the world's most popular PHP framework. Let's get started!
Рекомендации по теме
Комментарии
Автор

great as always keep on great share !!

farshadbadiee
Автор

you are the great. i like all your videos

MashalMentor
Автор

You are a great person thank you so much u send us an amazin positive energy ^^

mouhssinetarik
Автор

we also can use:
factory('App\Company', 10)->create()

DenTechGaming
Автор

Hi! Request for the future: Please don't use the top and bottom of the screen, youtube always covers those, and zsh with dark blue vs black is very hard to see. :) Thank you! I've learned a lot!

dgloria
Автор

Hi!
First of all, lots of thanks for taking this time to share your knowledge with us.
Is there a way to change the locale for the Faker class? In order to get a name like "Sr. Juan Pérez" instead of "Mr. John Smith".
Thanks in advance!

estebanlopeza
Автор

Trying to get property 'name' of non-object (View:


how to resolve this customer page is not showing

mariaqasim
Автор

I recommend having a look at how CakePHP deals with fixtures using factories:


pabloinberlin