Skip to content

Instantly share code, notes, and snippets.

@afoysal
Created March 2, 2018 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afoysal/80428e36c87a1c4f3fceb8a1ce19658e to your computer and use it in GitHub Desktop.
Save afoysal/80428e36c87a1c4f3fceb8a1ce19658e to your computer and use it in GitHub Desktop.
<?php
use Faker\Generator as Faker;
$factory->define(App\Applicant_skill::class, function (Faker $faker) {
return [
'applicant_id' => \App\Applicant::all()->random()->id,
'skill_id' => \App\Skills::all()->random()->id,
];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment