2019-04-03 02:09:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Product::class, function (Faker $faker) {
|
|
|
|
return [
|
|
|
|
'product_key' => $faker->text(7),
|
|
|
|
'notes' => $faker->text(20),
|
2020-03-21 06:37:30 +01:00
|
|
|
'cost' => $faker->numberBetween(1, 1000),
|
|
|
|
'price' => $faker->numberBetween(1, 1000),
|
|
|
|
'quantity' => $faker->numberBetween(1, 100),
|
2019-04-03 02:09:22 +02:00
|
|
|
'tax_name1' => 'GST',
|
|
|
|
'tax_rate1' => 10,
|
|
|
|
'tax_name2' => 'VAT',
|
|
|
|
'tax_rate2' => 17.5,
|
2019-10-05 04:28:23 +02:00
|
|
|
'tax_name3' => 'THIRDTAX',
|
|
|
|
'tax_rate3' => 5,
|
2019-04-03 02:09:22 +02:00
|
|
|
'custom_value1' => $faker->text(20),
|
|
|
|
'custom_value2' => $faker->text(20),
|
|
|
|
'custom_value3' => $faker->text(20),
|
|
|
|
'custom_value4' => $faker->text(20),
|
|
|
|
'is_deleted' => false,
|
|
|
|
];
|
|
|
|
});
|