Last active
November 4, 2017 06:58
-
-
Save vineeth030/32242639a7bc5dd32db79260c5514901 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
public function run() | |
{ | |
factory(App\Teacher::class, 2)->create()->each(function ($teacher) { | |
$teacher->students()->saveMany(factory(App\Student::class, 25)->make()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment