Carbon::now(), 'updated_at' => Carbon::now(), 'year' => $this->faker->randomNumber(), 'seat_description' => $this->faker->text(), 'student_id' => Student::factory(), ]; } public function forStudent(Student $student): self { return $this->state(function (array $attributes) use ($student) { return [ 'student_id' => $student->id, ]; }); } }