*/ class ServiceSliceFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'service_id' => Service::factory(), 'name' => $this->faker->slug(), 'type' => 'database_user', 'status' => 'active', 'config' => [], 'credentials' => [ 'username' => $this->faker->userName(), 'password' => $this->faker->password(16), 'database' => $this->faker->slug(), ], ]; } }