Better here... you are more likely to get a reply
ApplicantSkillFactory
<?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,
];
});
This will not give you what you want since each time you run it you have just as much chance to pick an applicant and skill as the last time you ran it. You will end up with some applicants with no skills at all, and some with the same skills repeated over and over.
Can you tell me when you want to use this?