/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $students = Student::all(); foreach ($students as $student) { Paper::FirstOrcreate(['student_id' => $student->id]); } // $this->call("OthersTableSeeder"); }