The following two seeder files autobuild the assignments and mos structure for the unit.
Assignment requires the following
$assignment = new Assignment;
$assignment->group_id = $group12->id; (Groups are already defined)
$assignment->name = 'Infantry Support Specialist'; (Name goes here yep)
$assignment->save();
MOS requires the following
$mos = new MOS;
$mos->name = 'Infantry Support Specialist'; (Name must match assignment
$mos->mos = '92B'; (MOS Code - MUST BE UNIQUE)
$mos->rank_limitation_id = $SPC->id; (Ranks are defined at top as $VAR)
$mos->save();
Seeder will autoattach all Assignments to MOS's
It would be done, but you said you wanted to modify the structure, so get this done
The following two seeder files autobuild the assignments and mos structure for the unit.
Assignment requires the following $assignment = new Assignment; $assignment->group_id = $group12->id; (Groups are already defined) $assignment->name = 'Infantry Support Specialist'; (Name goes here yep) $assignment->save();
MOS requires the following $mos = new MOS; $mos->name = 'Infantry Support Specialist'; (Name must match assignment $mos->mos = '92B'; (MOS Code - MUST BE UNIQUE) $mos->rank_limitation_id = $SPC->id; (Ranks are defined at top as $VAR) $mos->save();
Seeder will autoattach all Assignments to MOS's
It would be done, but you said you wanted to modify the structure, so get this done