Skip to content

Instantly share code, notes, and snippets.

@franksteinberg
Created March 1, 2019 18:17
Show Gist options
  • Save franksteinberg/32d6ddd853964bf74103a164365cc459 to your computer and use it in GitHub Desktop.
Save franksteinberg/32d6ddd853964bf74103a164365cc459 to your computer and use it in GitHub Desktop.
Possible Employee Factory (instead of Employer factory)
$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