mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
63 lines
2.0 KiB
PHP
63 lines
2.0 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\Warehousearr::class, function (Faker $faker) {
|
|
return [
|
|
|
|
'so_id'=> function () {
|
|
|
|
return factory(App\So::class)->create()->id;
|
|
|
|
},
|
|
'receive_on'=> '2018-03-01',
|
|
'transport_company_name'=> 'testing',
|
|
'consignment_note_no'=> '1',
|
|
'warehouse_receive_note_no'=> '1',
|
|
'receiving_person'=> 'testing',
|
|
'marking_number'=> '1',
|
|
'image'=> 'testing.jpg',
|
|
'warehouseitem' => [
|
|
0 => [
|
|
'description'=> 'testing',
|
|
'nominal_ctn'=> '1',
|
|
'actual_ctn'=> '1',
|
|
'nominal_measurement'=> '1',
|
|
'actual_measurement'=> '1',
|
|
'nominal_weight'=> '1',
|
|
'actual_weight'=> '1',
|
|
'balance'=> '1',
|
|
'isDamaged'=> '1',
|
|
'status'=> 'testing',
|
|
'image'=> 'testing.jpg',
|
|
'wa_id'=> '1',
|
|
],
|
|
1 => [
|
|
'description'=> 'testing',
|
|
'nominal_ctn'=> '1',
|
|
'actual_ctn'=> '1',
|
|
'nominal_measurement'=> '1',
|
|
'actual_measurement'=> '1',
|
|
'nominal_weight'=> '1',
|
|
'actual_weight'=> '1',
|
|
'balance'=> '2',
|
|
'isDamaged'=> '1',
|
|
'status'=> 'testing',
|
|
'image'=> 'testing.jpg',
|
|
'wa_id'=> '1',
|
|
]
|
|
]
|
|
];
|
|
});
|