Answers for "laravel factory alternative id"

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

Browse Popular Code Answers by Language