create factory file + laravel artisan code example
Example 1: php artisan make factory
php artisan make:factory AddressFactory --model="App\\Address"
Example 2: laravel factory
php artisan make:factory PostFactory --model=Post
php artisan make:factory AddressFactory --model="App\\Address"
php artisan make:factory PostFactory --model=Post