*/ class UserActivityFactory extends Factory { /** * The current password being used by the factory. */ protected static ?string $password; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'activity_id' => 1, 'mark' => rand(50, 500), 'join_times' => rand(5, 10), 'right_times' => rand(0, 5), 'last_join_at' => now(), ]; } }