Ejemplo n.º 1
0
 public function run()
 {
     $accounts = [1, 2];
     foreach ($accounts as $account) {
         $teller = 0;
         while ($teller < 15) {
             Client::create(['account_id' => $account, 'name' => $this->faker->userName, 'website' => $this->faker->url, 'nl' => ['description' => $this->faker->paragraph(5)], 'en' => ['description' => $this->faker->paragraph(5)], 'fr' => ['description' => $this->faker->paragraph(5)], 'de' => ['description' => $this->faker->paragraph(5)]]);
             ++$teller;
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * @param Client $client
  * @param Request $request
  * @param AccountManager $manager
  * @return static
  */
 public function store(Client $client, Request $request, AccountManager $manager)
 {
     $input = array_merge(['account_id' => $manager->account()->id], translation_input($request, ['description']));
     return $client->create($input);
 }