*/ use HasFactory; /** * The attributes that are mass assignable. * * @var list */ protected $fillable = [ 'user_id', 'company_id', 'start', 'end', 'year_of_study', 'semester', 'position_description', 'agreement', ]; /** * Get the statuses for the internship. */ public function statuses() { return $this->hasMany(InternshipStatus::class, 'internship_id'); } }