Created
March 1, 2019 18:17
-
-
Save franksteinberg/32d6ddd853964bf74103a164365cc459 to your computer and use it in GitHub Desktop.
Possible Employee Factory (instead of Employer factory)
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
$factory->define(Employee::class, function ($faker) use ($factory) { | |
return [ | |
'user_id' => factory(User::class)->create()->id, | |
'employer_id' => factory(Employer::class)->create()->id | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment