$this->faker->unique()->randomElement([ 'personalia', 'supervisor', 'staff', ]), 'guard_name' => 'web', ]; } public function personalia(): static { return $this->state(function (array $attributes) { return [ 'name' => 'personalia', ]; }); } public function supervisor(): static { return $this->state(function (array $attributes) { return [ 'name' => 'supervisor', ]; }); } public function staff(): static { return $this->state(function (array $attributes) { return [ 'name' => 'staff', ]; }); } }