= 8) { $class = random_int(intval(User::CLASS_POWER_USER), intval(User::CLASS_SYSOP)); } else { $class = User::CLASS_USER; } return [ 'username' => $username, 'email' => $email, 'secret' => mksecret(), 'editsecret' => "", 'passhash' => $passhash, 'stylesheet' => self::$defaultStyleSheet, 'added' => now()->toDateTimeString(), 'status' => User::STATUS_CONFIRMED, 'class' => $class ]; } /** * Indicate that the model's email address should be unverified. * * @return \Illuminate\Database\Eloquent\Factories\Factory */ // public function unverified() // { // return $this->state(function (array $attributes) { // return [ // 'email_verified_at' => null, // ]; // }); // } }