Answers for "command for entering data using factory in db in laravel 8"

PHP
0

add factory data laravel

For Laravel version 7.* and less
factory(AppUser::class, 3)->make();

Use create method to persist them to the database:
factory(AppUser::class, 3)->create();
Posted by: Guest on November-28-2020

Code answers related to "command for entering data using factory in db in laravel 8"

Browse Popular Code Answers by Language