*/ public function definition(): array { $published = $this->faker->boolean(75); return [ 'first_name' => $this->faker->firstname(), 'last_name' => $this->faker->lastname(), 'email' => $this->faker->unique()->safeEmail(), 'remember_token' => Str::random(10), 'role' => \collect(RoleEnum::toArray())->random()->value, 'published' => $published, 'published_at' => ($published) ? now() : null, 'last_connection' => ($published) ? now() : null, ]; } }