comoser php artisan make:factory code example Example: php artisan make factory php artisan make:factory AddressFactory --model="App\\Address"