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', ] ] ]; });