mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-23 06:24:07 +00:00
added company, warehouse, contact seeder
This commit is contained in:
@@ -15,9 +15,11 @@ class CompanySeeder extends Seeder
|
||||
DB::table('companies')->insert([
|
||||
|
||||
'id' => '999',
|
||||
'company_profile'=>'testing',
|
||||
'reg_cert'=>'12345',
|
||||
'company_name'=>'testing',
|
||||
'registration_no'=>'testing',
|
||||
'tax_no'=>'testing',
|
||||
'registration_no'=>'12345',
|
||||
'tax_no'=>'12345',
|
||||
'tel_no'=>'12345',
|
||||
'fax'=>'12345',
|
||||
'address'=>'testing',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class ContactSeeder extends Seeder
|
||||
{
|
||||
@@ -11,6 +12,15 @@ class ContactSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//
|
||||
DB::table('contacts')->insert([
|
||||
|
||||
'id' => '999',
|
||||
'user_id' => '2',
|
||||
'com_id' => '999',
|
||||
'status' => '1',
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
$this->call(LaratrustSeeder::class);
|
||||
$this->call(UsersTableSeeder::class);
|
||||
$this->call(DeliveryInfoSeeder::class);
|
||||
$this->call(CompanySeeder::class);
|
||||
$this->call(DeliveryInfoSeeder::class);
|
||||
$this->call(WarehouseSeeder::class);
|
||||
$this->call(ContactSeeder::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,14 +15,14 @@ class DeliveryInfoSeeder extends Seeder
|
||||
DB::table('deliveryinfos')->insert([
|
||||
|
||||
'id' => '999',
|
||||
'branch' => 'Testing',
|
||||
'deli_info' => 'Testing',
|
||||
'address' => 'Testing',
|
||||
'city' => 'Test',
|
||||
'branch' => 'testing',
|
||||
'deli_info' => 'testing',
|
||||
'address' => 'testing',
|
||||
'city' => 'testing',
|
||||
'postcode' => '12345',
|
||||
'state' => 'Testing',
|
||||
'country' => 'Testing',
|
||||
'contact_person' => 'Testing',
|
||||
'state' => 'testing',
|
||||
'country' => 'testing',
|
||||
'contact_person' => 'testing',
|
||||
'contact_person_no' => '12345',
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class WarehouseSeeder extends Seeder
|
||||
{
|
||||
@@ -11,6 +12,21 @@ class WarehouseSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//
|
||||
DB::table('warehouses')->insert([
|
||||
|
||||
'id' => '999',
|
||||
'address'=>'testing',
|
||||
'city'=>'testing',
|
||||
'zip'=>'12345',
|
||||
'state'=>'testing',
|
||||
'contact_person'=>'testing',
|
||||
'contact_person_no'=>'12345',
|
||||
'branch'=>'testing',
|
||||
'country'=>'testing',
|
||||
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'updated_at' => Carbon::now()->format('Y-m-d H:i:s'),
|
||||
'com_id' => '999'
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user