Improved inventory package code style
This commit is contained in:
parent
ec52229567
commit
ad4ab855e0
|
|
@ -7,6 +7,7 @@ use Webkul\Inventory\Models\InventorySource;
|
|||
$factory->define(InventorySource::class, function (Faker $faker) {
|
||||
$now = date("Y-m-d H:i:s");
|
||||
$code = $faker->unique()->word;
|
||||
|
||||
return [
|
||||
'code' => $faker->unique()->word,
|
||||
'name' => $code,
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ class InventoryTableSeeder extends Seeder
|
|||
DB::table('inventory_sources')->delete();
|
||||
|
||||
DB::table('inventory_sources')->insert([
|
||||
'id' => 1,
|
||||
'code' => 'default',
|
||||
'name' => 'Default',
|
||||
'contact_name' => 'Detroit Warehouse',
|
||||
'contact_email' => 'warehouse@example.com',
|
||||
'id' => 1,
|
||||
'code' => 'default',
|
||||
'name' => 'Default',
|
||||
'contact_name' => 'Detroit Warehouse',
|
||||
'contact_email' => 'warehouse@example.com',
|
||||
'contact_number' => 1234567899,
|
||||
'status' => 1,
|
||||
'country' => 'US',
|
||||
'state' => 'MI',
|
||||
'street' => '12th Street',
|
||||
'city' => 'Detroit',
|
||||
'postcode' => '48127',
|
||||
'status' => 1,
|
||||
'country' => 'US',
|
||||
'state' => 'MI',
|
||||
'street' => '12th Street',
|
||||
'city' => 'Detroit',
|
||||
'postcode' => '48127'
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue