$this->faker->unique()->word() . ' Department', 'created_by' => User::factory()->superuser(), 'location_id' => Location::factory(), ]; } public function hr() { return $this->state(function () { return [ 'name' => 'Human Resources', ]; }); } public function engineering() { return $this->state(function () { return [ 'name' => 'Engineering', ]; }); } public function marketing() { return $this->state(function () { return [ 'name' => 'Marketing', ]; }); } public function client() { return $this->state(function () { return [ 'name' => 'Client Services', ]; }); } public function design() { return $this->state(function () { return [ 'name' => 'Graphic Design', ]; }); } public function product() { return $this->state(function () { return [ 'name' => 'Product Management', ]; }); } public function silly() { return $this->state(function () { return [ 'name' => 'Dept of Silly Walks', ]; }); } }