mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
62 lines
2.2 KiB
PHP
62 lines
2.2 KiB
PHP
<?php
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Model Factories
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This directory should contain each of the model factory definitions for
|
|
| your application. Factories provide a convenient way to generate new
|
|
| model instances for testing / seeding your application's database.
|
|
|
|
|
*/
|
|
|
|
$factory->define(App\So::class, function (Faker $faker) {
|
|
return [
|
|
'ff_id'=>'1',
|
|
'supplier_company_name'=>'testing',
|
|
'supplier_contact_person'=>'testing',
|
|
'supplier_contact_person_no'=>'1',
|
|
'delivery_id'=>'1',
|
|
'warehouse_id'=>'1',
|
|
'soitem' => [
|
|
0 => [
|
|
'so_id'=> '1',
|
|
'status'=> '1',
|
|
'order_id'=> '1',
|
|
'brand_no'=> '1',
|
|
'model_no'=> '1',
|
|
'item_code'=> '1',
|
|
'quantity_of_item'=> '1',
|
|
'uom'=> 'testing',
|
|
'quantity_of_carton'=> '1',
|
|
'packaging_type'=> 'testing',
|
|
'packaging_height'=> '1',
|
|
'packaging_width'=> '1',
|
|
'packaging_depth'=> '1',
|
|
'packaging_gross'=> '1',
|
|
'packaging_nett'=> '1',
|
|
],
|
|
1 => [
|
|
'so_id'=> '1',
|
|
'status'=> '1',
|
|
'order_id'=> '1',
|
|
'brand_no'=> '1',
|
|
'model_no'=> '1',
|
|
'item_code'=> '1',
|
|
'quantity_of_item'=> '1',
|
|
'uom'=> 'testing',
|
|
'quantity_of_carton'=> '1',
|
|
'packaging_type'=> 'testing',
|
|
'packaging_height'=> '1',
|
|
'packaging_width'=> '1',
|
|
'packaging_depth'=> '1',
|
|
'packaging_gross'=> '1',
|
|
'packaging_nett'=> '1',
|
|
]
|
|
]
|
|
];
|
|
});
|