Improve test data

This commit is contained in:
Hillel Coren 2016-08-14 22:29:34 +03:00
parent 918d58e0b6
commit 3d9b712fb7

View File

@ -109,6 +109,8 @@ class CreateTestData extends Command
for ($i=0; $i<$this->count; $i++) { for ($i=0; $i<$this->count; $i++) {
$data = [ $data = [
'client_id' => $client->id, 'client_id' => $client->id,
'invoice_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),
'due_date_sql' => date_create()->modify(rand(-100, 100) . ' days')->format('Y-m-d'),
'invoice_items' => [[ 'invoice_items' => [[
'product_key' => $this->faker->word, 'product_key' => $this->faker->word,
'qty' => $this->faker->randomDigit + 1, 'qty' => $this->faker->randomDigit + 1,