laravel factory id code example
Example: add factory data laravel
For Laravel version 7.* and less
factory(App\User::class, 3)->make();
Use create method to persist them to the database:
factory(App\User::class, 3)->create();
For Laravel version 7.* and less
factory(App\User::class, 3)->make();
Use create method to persist them to the database:
factory(App\User::class, 3)->create();