Laravel - Database - Generating Factories

To create a factory, execute the make:factory Artisan command:

    
    php artisan make:factory PostFactory
	

The new factory class will be placed in your database/factories directory.