/** * UniversitySeeder constructor. * Must be called in subclass if there is a constructor defined. */ public function __construct() { $this->university = University::find($this->universityId); $this->university->published = $this->published; $this->university->save(); }