-
-
Save uno-de-piera/7d4936bf6b982d6071df0d11f9b3c905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
factory(App\User::class, 30)->create()->each(function($user) { | |
factory(App\Post::class, rand(1, 10))->create(['user_id' => $user->id]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment