*/ class DisposalReasonFactory extends Factory { protected $model = DisposalReason::class; /** * @return array */ public function definition(): array { return [ 'label' => $this->faker->unique()->randomElement([ 'Bruch / Beschädigung', 'Verfall / MHD überschritten', 'Qualitätsmangel', 'Schwund / Inventurdifferenz', 'Muster / Testverbrauch', 'Sonstiges', ]), 'active' => true, 'pos' => 0, ]; } }