Improved inventory package code style

This commit is contained in:
Jitendra Singh 2020-02-19 19:22:29 +05:30
parent ec52229567
commit ad4ab855e0
2 changed files with 12 additions and 11 deletions

View File

@ -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,

View File

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