$this->faker->name(), 'dnsdomain' => $this->faker->unique()->safeEmail(), 'notes' => $this->faker->text(), 'homepage' => $this->faker->text(), 'active' => FALSE, 'public' => FALSE, ]; } public function active() { return $this->state(function (array $attributes) { return [ 'active' => TRUE, ]; }); } public function public() { return $this->state(function (array $attributes) { return [ 'public' => TRUE, ]; }); } }