App\Console\Commands\CreateTestData::createClients PHP Метод

createClients() приватный Метод

private createClients ( )
    private function createClients()
    {
        for ($i = 0; $i < $this->count; $i++) {
            $data = ['name' => $this->faker->name, 'address1' => $this->faker->streetAddress, 'address2' => $this->faker->secondaryAddress, 'city' => $this->faker->city, 'state' => $this->faker->state, 'postal_code' => $this->faker->postcode, 'contacts' => [['first_name' => $this->faker->firstName, 'last_name' => $this->faker->lastName, 'email' => $this->faker->safeEmail, 'phone' => $this->faker->phoneNumber]]];
            $client = $this->clientRepo->save($data);
            $this->info('Client: ' . $client->name);
            $this->createInvoices($client);
        }
    }