Browner12 wrote a nice tutorial on how to use Laravel factories.

laravel