define factory laravel 8 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