sync
This commit is contained in:
@@ -16,6 +16,8 @@ public function up(): void
|
||||
$table->string('name');
|
||||
$table->string('slug')->unique();
|
||||
$table->string('i18n')->unique();
|
||||
$table->string('country_iso');
|
||||
$table->string('lang');
|
||||
$table->boolean('enabled')->default(false);
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
use App\Models\CountryLocale;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
@@ -14,10 +13,13 @@ public function up(): void
|
||||
{
|
||||
Schema::create('categories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignIdFor(CountryLocale::class);
|
||||
$table->enum('type', ['review', 'launch', 'deals'])->default('review');
|
||||
$table->foreignId('country_locale_id');
|
||||
$table->string('country_locale_slug')->default('my');
|
||||
$table->string('name')->nullable();
|
||||
$table->string('short_name')->nullable();
|
||||
$table->string('slug')->nullable();
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->boolean('enabled')->default(true);
|
||||
$table->boolean('is_top')->default(true);
|
||||
$table->nestedSet();
|
||||
@@ -25,6 +27,8 @@ public function up(): void
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('country_locale_id')->references('id')->on('country_locales');
|
||||
$table->foreign('country_locale_slug')->references('slug')->on('country_locales');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->string('country_locale_slug')->after('country_locale_id')->default('my');
|
||||
$table->foreign('country_locale_slug')->references('slug')->on('country_locales');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->dropColumn('country_locale_slug');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('country_locales', function (Blueprint $table) {
|
||||
$table->string('country_iso')->after('i18n');
|
||||
$table->string('lang')->after('i18n');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('country_locales', function (Blueprint $table) {
|
||||
$table->dropColumn('country_iso');
|
||||
$table->dropColumn('lang');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->mediumText('description')->after('slug')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->dropColumn('description');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -15,11 +15,13 @@ public function up(): void
|
||||
$table->id();
|
||||
$table->string('title')->nullable();
|
||||
$table->string('slug')->nullable();
|
||||
$table->text('cliffhanger')->nullable();
|
||||
$table->mediumText('excerpt')->nullable();
|
||||
$table->foreignId('author_id')->nullable();
|
||||
$table->datetime('publish_date')->nullable();
|
||||
$table->boolean('featured')->default(false);
|
||||
$table->string('featured_image')->nullable();
|
||||
$table->enum('editor', ['editorjs'])->default('editorjs');
|
||||
$table->enum('editor', ['editorjs', 'markdown'])->default('editorjs');
|
||||
$table->json('body')->nullable();
|
||||
$table->enum('post_format', ['standard'])->default('standard');
|
||||
$table->integer('comment_count')->default(0);
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->datetime('publish_date')->nullable()->after('author_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->dropColumn('publish_date');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->enum('type', ['review', 'launch', 'deals'])->default('review')->after('id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('categories', function (Blueprint $table) {
|
||||
$table->dropColumn('type');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->string('cliffhanger')->after('excerpt')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->dropColumn('cliffhanger');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->text('cliffhanger')->after('excerpt')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('posts', function (Blueprint $table) {
|
||||
$table->string('cliffhanger')->after('excerpt')->nullable()->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::statement("ALTER TABLE posts CHANGE COLUMN editor editor ENUM('editorjs', 'markdown') NOT NULL DEFAULT 'editorjs'");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
DB::statement("ALTER TABLE posts CHANGE COLUMN editor editor ENUM('editorjs') NOT NULL DEFAULT 'editorjs'");
|
||||
}
|
||||
};
|
||||
28
database/seeders/CountryLocaleSeeder.php
Normal file
28
database/seeders/CountryLocaleSeeder.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\CountryLocale;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class CountryLocaleSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$global_country_locale = CountryLocale::where('slug', 'global')->first();
|
||||
|
||||
if (is_null($global_country_locale)) {
|
||||
$global_country_locale = new CountryLocale;
|
||||
$global_country_locale->name = 'Global';
|
||||
$global_country_locale->slug = 'global';
|
||||
$global_country_locale->i18n = 'en';
|
||||
$global_country_locale->lang = 'en';
|
||||
$global_country_locale->country_iso = '*';
|
||||
$global_country_locale->enabled = true;
|
||||
$global_country_locale->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\ShopeeSellerCategory;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ShopeeFitnessCategorySeeder extends Seeder
|
||||
@@ -14,17 +13,16 @@ class ShopeeFitnessCategorySeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$shopee_sellers = ["abugarcia.os", "acrossports.os", "adidasmy.os", "aibifitness.os", "alikhsansports.os", "alonefire.os", "alpsport.os", "altrarunningmy.os", "ambroscorp", "antamalaysia.os", "antaofficial.os", "aonijie.os", "apacsofficialflagshipstore", "aqsupport.os", "asicsmalaysia.os", "athletelq.os", "avivaactive.os", "brooks.os", "badmintonfactory", "blenderbottle.os", "bullzenfishing.os", "bushnell.os", "carlton.os", "camelcrownoutdoor.os", "cameloutdoor.os", "capbarbellasia.os", "chaopai.os", "cinellimalaysia.os", "cm2.os", "coleman.os", "consinaofficial.os", "crazeecausa", "dahon.os", "decathlon.official.store", "desiregym.os", "deutermy.os", "dhs.os", "diadoramy.os", "durakingoutdoorandsports.os", "donicmalaysia.os", "drskin.os", "egosports.os", "endurancesports", "expfishing.os", "prokennex.os", "felet.os", "fenin.os", "wums0310.os", "tokushima.os", "fitnessconcept.os", "gattimalaysia", "gearupmy.os", "gintell", "gomexus.os", "gosengs.sports.world", "gsgill.os", "db3686", "hedgrenmy.os", "herschelmy.os", "hiervnofficial.my", "hoopsstation.os", "hydroflaskmy.os", "hypergear.os", "inbike.os", "pa20085566.os", "jakroomy.os", "johnsonfitness.os", "jdtstore", "kalibre.os", "kastking.os", "kingdomfishing.my", "kingsmith.os", "kshbicycle.os", "kuckreja.os", "kawasakibadmintonmalaysia", "lasonaofficial.my", "lining.os", "litepro.my", "lixada.os", "lpmy.os", "lpm.os", "montanic.os", "matsumotostore", "mavllos.os", "maxboltmy", "maxfind.os", "maxx.os", "mobigarden.os", "mcdavidmy.os", "minelabmalaysia", "mobigarden.kj.os", "spacey.os", "montbell.os", "monton.malaysia.os", "moonaz.os", "naturehike.os", "naturehikeglobal.my", "langgou.my", "newbalancemy.os", "nicronmy", "ogevkin.my", "ogawacorp.", "ogival.os", "one.two.fit", "onetwofitofficial.my", "originalclassicmy.os", "ortuseightofficialshop.os", "osprey.os", "exploreroutfitter.os", "outpost.os", "outsidemy.os", "outtobe.os", "ovicx.os", "peak.os", "peaksportsmy.os", "pgmgolf.os", "pinknproper.os", "prestigesports.os", "proapparel.os", "probiker.my", "pronic.os", "prosun.os", "protech.os", "protechbysupercourt", "prspsports", "pumamy.os", "purefishingmalaysia.os", "rcl.os", "rainbowstyle333.os", "rapalamy.os", "reechooutdoor.my", "rigidfitness.os", "ripcurlmy.os", "rockbros.os", "cycling1.my", "rstaichi.os", "runninglabmy.os", "oceansportmy", "s2hcyclemall.os", "salomonmy.os", "sanctbandactive.os", "santic.os", "seahawkfishing.os", "selleitaliamalaysia", "shimanomalaysiacycling.os", "shimanofishingmy.os", "shipwreckskateboards.os", "skelcoremy.os", "kelvenchang.os", "slmbicycle.os", "smilingshark.os", "xunmenglong.my", "sneakerlabmy.os", "snugsport.os", "sofirnlight.my", "sougayilang.os", "sparkprotein.os", "whaledream563", "speedoofficial.os", "sportplanet.os", "sportsdirectmy.os", "stridermalaysia.os", "sunparadisemy", "18138419167.my", "swimfitmy.os", "themarathonshop.os", "thenorthfacemy.os", "tankebicycle.os", "tcetacklesestore", "tecnifibremy", "tenxionofficial.os", "cinemark0621.os", "thirddayco.os", "thkfish.os", "treesandsunoutdoor", "trs.os", "trudivemalaysiasingapore", "tulldent.os", "twinbrothers.os", "underarmourmy.os", "uponumbrella.os", "uscamel1.my", "velo88.os", "victorbysinma", "victormalaysia.os", "victorinox.os", "vigorfitness.os", "viq.os", "vsmash.os", "warrixofficialju.my", "westbiking.os", "worldofsports.os", "xtiger.os", "xcorefitness.os", "xinpower.os", "xiom.os", "xtep.os", "yinhe.os", "yonex.os", "youngofficial.os", "zeromarketplace", "zttobike.my", "2xu.os", "361degrees.os", "910sportswear.os"
|
||||
];
|
||||
$shopee_sellers = ['abugarcia.os', 'acrossports.os', 'adidasmy.os', 'aibifitness.os', 'alikhsansports.os', 'alonefire.os', 'alpsport.os', 'altrarunningmy.os', 'ambroscorp', 'antamalaysia.os', 'antaofficial.os', 'aonijie.os', 'apacsofficialflagshipstore', 'aqsupport.os', 'asicsmalaysia.os', 'athletelq.os', 'avivaactive.os', 'brooks.os', 'badmintonfactory', 'blenderbottle.os', 'bullzenfishing.os', 'bushnell.os', 'carlton.os', 'camelcrownoutdoor.os', 'cameloutdoor.os', 'capbarbellasia.os', 'chaopai.os', 'cinellimalaysia.os', 'cm2.os', 'coleman.os', 'consinaofficial.os', 'crazeecausa', 'dahon.os', 'decathlon.official.store', 'desiregym.os', 'deutermy.os', 'dhs.os', 'diadoramy.os', 'durakingoutdoorandsports.os', 'donicmalaysia.os', 'drskin.os', 'egosports.os', 'endurancesports', 'expfishing.os', 'prokennex.os', 'felet.os', 'fenin.os', 'wums0310.os', 'tokushima.os', 'fitnessconcept.os', 'gattimalaysia', 'gearupmy.os', 'gintell', 'gomexus.os', 'gosengs.sports.world', 'gsgill.os', 'db3686', 'hedgrenmy.os', 'herschelmy.os', 'hiervnofficial.my', 'hoopsstation.os', 'hydroflaskmy.os', 'hypergear.os', 'inbike.os', 'pa20085566.os', 'jakroomy.os', 'johnsonfitness.os', 'jdtstore', 'kalibre.os', 'kastking.os', 'kingdomfishing.my', 'kingsmith.os', 'kshbicycle.os', 'kuckreja.os', 'kawasakibadmintonmalaysia', 'lasonaofficial.my', 'lining.os', 'litepro.my', 'lixada.os', 'lpmy.os', 'lpm.os', 'montanic.os', 'matsumotostore', 'mavllos.os', 'maxboltmy', 'maxfind.os', 'maxx.os', 'mobigarden.os', 'mcdavidmy.os', 'minelabmalaysia', 'mobigarden.kj.os', 'spacey.os', 'montbell.os', 'monton.malaysia.os', 'moonaz.os', 'naturehike.os', 'naturehikeglobal.my', 'langgou.my', 'newbalancemy.os', 'nicronmy', 'ogevkin.my', 'ogawacorp.', 'ogival.os', 'one.two.fit', 'onetwofitofficial.my', 'originalclassicmy.os', 'ortuseightofficialshop.os', 'osprey.os', 'exploreroutfitter.os', 'outpost.os', 'outsidemy.os', 'outtobe.os', 'ovicx.os', 'peak.os', 'peaksportsmy.os', 'pgmgolf.os', 'pinknproper.os', 'prestigesports.os', 'proapparel.os', 'probiker.my', 'pronic.os', 'prosun.os', 'protech.os', 'protechbysupercourt', 'prspsports', 'pumamy.os', 'purefishingmalaysia.os', 'rcl.os', 'rainbowstyle333.os', 'rapalamy.os', 'reechooutdoor.my', 'rigidfitness.os', 'ripcurlmy.os', 'rockbros.os', 'cycling1.my', 'rstaichi.os', 'runninglabmy.os', 'oceansportmy', 's2hcyclemall.os', 'salomonmy.os', 'sanctbandactive.os', 'santic.os', 'seahawkfishing.os', 'selleitaliamalaysia', 'shimanomalaysiacycling.os', 'shimanofishingmy.os', 'shipwreckskateboards.os', 'skelcoremy.os', 'kelvenchang.os', 'slmbicycle.os', 'smilingshark.os', 'xunmenglong.my', 'sneakerlabmy.os', 'snugsport.os', 'sofirnlight.my', 'sougayilang.os', 'sparkprotein.os', 'whaledream563', 'speedoofficial.os', 'sportplanet.os', 'sportsdirectmy.os', 'stridermalaysia.os', 'sunparadisemy', '18138419167.my', 'swimfitmy.os', 'themarathonshop.os', 'thenorthfacemy.os', 'tankebicycle.os', 'tcetacklesestore', 'tecnifibremy', 'tenxionofficial.os', 'cinemark0621.os', 'thirddayco.os', 'thkfish.os', 'treesandsunoutdoor', 'trs.os', 'trudivemalaysiasingapore', 'tulldent.os', 'twinbrothers.os', 'underarmourmy.os', 'uponumbrella.os', 'uscamel1.my', 'velo88.os', 'victorbysinma', 'victormalaysia.os', 'victorinox.os', 'vigorfitness.os', 'viq.os', 'vsmash.os', 'warrixofficialju.my', 'westbiking.os', 'worldofsports.os', 'xtiger.os', 'xcorefitness.os', 'xinpower.os', 'xiom.os', 'xtep.os', 'yinhe.os', 'yonex.os', 'youngofficial.os', 'zeromarketplace', 'zttobike.my', '2xu.os', '361degrees.os', '910sportswear.os',
|
||||
];
|
||||
|
||||
$category = Category::where('country_locale_slug','my')->where('name','Fitness')->first();
|
||||
$category = Category::where('country_locale_slug', 'my')->where('name', 'Fitness')->first();
|
||||
|
||||
foreach ($shopee_sellers as $seller)
|
||||
{
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
foreach ($shopee_sellers as $seller) {
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\ShopeeSellerCategory;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ShopeeHealthCategorySeeder extends Seeder
|
||||
@@ -14,290 +13,289 @@ class ShopeeHealthCategorySeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$shopee_sellers = [
|
||||
'isawmedical',
|
||||
'rochediagnostic.digital.my',
|
||||
'euyansang.os',
|
||||
'a27139200.os',
|
||||
'abbioticsmy.os',
|
||||
'agnutrition.os',
|
||||
'airinummy',
|
||||
'activelifemalaysia',
|
||||
'alpro',
|
||||
'apexpharmacy',
|
||||
'appeton.os',
|
||||
'ash2.os',
|
||||
'a.plus.os',
|
||||
'babybee.os',
|
||||
'backjoymalaysia',
|
||||
'bamnatural',
|
||||
'bardox.co',
|
||||
'bayerconsumerhealth.os',
|
||||
'bengkungmedikalturki',
|
||||
'benourish.os',
|
||||
'berryc.hq',
|
||||
'bhbhealth',
|
||||
'feeksempire.os',
|
||||
'biogro',
|
||||
'bioaquacelmalaysia',
|
||||
'biolife.malaysia',
|
||||
'biocareofficialstore',
|
||||
'biogreenofficial',
|
||||
'biogrow.os',
|
||||
'bioley.os',
|
||||
'bloomylotus.os',
|
||||
'bloomfood.co',
|
||||
'bonlife.os',
|
||||
'bgdrug.os',
|
||||
'morehope.my',
|
||||
'comvita.os',
|
||||
'caremarkofficial.os',
|
||||
'catalo.os',
|
||||
'certaintyofficialstore',
|
||||
'champs.os',
|
||||
'changefit.os',
|
||||
'cleverinmalaysia',
|
||||
'care.os',
|
||||
'capkakitiga.os',
|
||||
'callie.os',
|
||||
'cosway.os',
|
||||
'durex.os',
|
||||
'comfier.my',
|
||||
'coreblueepro',
|
||||
'curaproxmy',
|
||||
'darco.os',
|
||||
'deeyeo.os',
|
||||
'dermaltherapy.os',
|
||||
'dettol.os',
|
||||
'dfenze',
|
||||
'deltamart.os',
|
||||
'ntpm.my',
|
||||
'doctoroncall.os',
|
||||
'drbei.os',
|
||||
'drclo.os',
|
||||
'dr.elizabeths',
|
||||
'dr.isla.my',
|
||||
'dr.isla',
|
||||
'drmoshealthcaresdnbhd',
|
||||
'duopharma.os',
|
||||
'easytomorrowmy',
|
||||
'egreenbeans',
|
||||
'eldonhealthcare.os',
|
||||
'elkenofficial',
|
||||
'empromalaysia',
|
||||
'eucapro.os',
|
||||
'ezywipes.os',
|
||||
'extreme.my',
|
||||
'finefoodsmy.os',
|
||||
'freestylelibre.os',
|
||||
'wiproconsumercare.my',
|
||||
'gazillionnutrition.os',
|
||||
'gintell',
|
||||
'gkbio.official.store',
|
||||
'gote.club',
|
||||
'grapeking.os',
|
||||
'greencyh.os',
|
||||
'grnkorea.os',
|
||||
'guardian.os',
|
||||
'soapberrygubao.os',
|
||||
'halagelmalaysia',
|
||||
'hanamedicofficial',
|
||||
'hannaancient.my.os',
|
||||
'hansaplast.my',
|
||||
'pgstoremy',
|
||||
'healthlanefamilypharmacy',
|
||||
'hansherbs',
|
||||
'haoyikangmy',
|
||||
'supreprobiotics',
|
||||
'healnutrition.os',
|
||||
'herbalfarmer',
|
||||
'healthparadise.os',
|
||||
'healthyhugqn.my',
|
||||
'nhdetoxlim.os',
|
||||
'herbion.os',
|
||||
'herbsofgold.os',
|
||||
'hoyanhor',
|
||||
'houmhygiene',
|
||||
'hovidnutriworld',
|
||||
'wyatt760513.os',
|
||||
'horigenmy.my',
|
||||
'homecareshop.os',
|
||||
'holy.shopee.my',
|
||||
'himalayamalaysia',
|
||||
'himalaya.natural',
|
||||
'hh.herbhealth.os',
|
||||
'itsuworld.os',
|
||||
'ideal.beauty.alliance88',
|
||||
'idsmedmalaysia',
|
||||
'ihoco',
|
||||
'imfrom.my',
|
||||
'incrediwear.os',
|
||||
'insmartofficialstore.my',
|
||||
'isoderm.os',
|
||||
'jamujelita.my',
|
||||
'a0907512010.os',
|
||||
'jinkairui.os',
|
||||
'jointwell',
|
||||
'jordan.os',
|
||||
'joyofoiling',
|
||||
'jsnhorizon',
|
||||
'jt0886.os',
|
||||
'jynns.os',
|
||||
'kacangmacha.os',
|
||||
'kalbe.my',
|
||||
'kcare.os',
|
||||
'kedaidiabetes.luka',
|
||||
'kedaimasalahlututkaki',
|
||||
'kinohimitsu.os',
|
||||
'kitsui.my.hq',
|
||||
'kobee.os',
|
||||
'huggies.os',
|
||||
'labelletea51.my',
|
||||
'laohuangju.os',
|
||||
'lennox.os',
|
||||
'vinegarbless.my',
|
||||
'lifespace.os',
|
||||
'lifespaceofficial.my.my',
|
||||
'loveearth.os',
|
||||
'unilevermy',
|
||||
'mirafilzah.os',
|
||||
'lushproteinmy',
|
||||
'm2.os',
|
||||
'manfortlab',
|
||||
'mariafaridasignature.os',
|
||||
'medicos.os',
|
||||
'medicurve',
|
||||
'mediqtto.os',
|
||||
'medisanaofficialstore',
|
||||
'medishield.regretless',
|
||||
'mf3.os',
|
||||
'mijep.my',
|
||||
'mobees.os',
|
||||
'mpdsummit',
|
||||
'muscletech.official',
|
||||
'mutyara.os',
|
||||
'myprotein.official',
|
||||
'nestidante.os',
|
||||
'naamskin',
|
||||
'nanojapan',
|
||||
'nanosingaporemy',
|
||||
'naturahousemalaysia',
|
||||
'natureswaymy.os',
|
||||
'neutrovis.os',
|
||||
'manukahealth.my',
|
||||
'nitrione.os',
|
||||
'nixoderm.os',
|
||||
'nowfoodsofficialmy',
|
||||
'nulatexmy',
|
||||
'nutrafem.os',
|
||||
'nutrione.os',
|
||||
'nusamedic.os',
|
||||
'nutriva888',
|
||||
'nutrixgold.os',
|
||||
'one.os',
|
||||
'offen.os',
|
||||
'ogawacorp.',
|
||||
'olivenol.os',
|
||||
'oilypod',
|
||||
'olo.os',
|
||||
'earthvitamins.os',
|
||||
'omron.os',
|
||||
'onecare.os',
|
||||
'onetouch.os',
|
||||
'oppo.os',
|
||||
'optimumnutrition.os',
|
||||
'oradexhb',
|
||||
'organicule',
|
||||
'orthosoft.os',
|
||||
'osim.os',
|
||||
'osteoactiv.os',
|
||||
'myostricare',
|
||||
'ostrovit.os',
|
||||
'p.love.os',
|
||||
'pghealth.my',
|
||||
'pandababytw.os',
|
||||
'pharmanutrihq',
|
||||
'pharmsvilleofficial.os',
|
||||
'pk24advanced.os',
|
||||
'playsafeunlimitedmalaysia',
|
||||
'popi.os',
|
||||
'psang.os',
|
||||
'bloodofficialstoremy',
|
||||
'purelyb123',
|
||||
'puremed.os',
|
||||
'quanstarbiotech.os',
|
||||
'quinlivan.os',
|
||||
'rossmax.os',
|
||||
'rafyaakob.os',
|
||||
'restore.os',
|
||||
'rosken.os',
|
||||
'rtopr.os',
|
||||
'scitecnutrition.os',
|
||||
'sambucol.os',
|
||||
'sanofiofficialstore',
|
||||
'scentpur.os',
|
||||
'scseven',
|
||||
'simply.os',
|
||||
'sinocare.os',
|
||||
'kyuwlcdcu5',
|
||||
'snowfit.os',
|
||||
'solaray',
|
||||
'soluxe',
|
||||
'southerncrescent.malaysia',
|
||||
'spaceylon.com.my',
|
||||
'splat.os',
|
||||
'springhealthofficial',
|
||||
'functionalfoodclub',
|
||||
'sunstar.os',
|
||||
'suubalm.os',
|
||||
'naturaloptions.os',
|
||||
'swisseoverseas.os',
|
||||
'swisse.malaysia',
|
||||
'tanameraofficial',
|
||||
'find.us.here.tenga.my',
|
||||
'tenga.os',
|
||||
'theaprilab2vq.my',
|
||||
'therabreath.os',
|
||||
'theragun.os',
|
||||
'tigerbalm.os',
|
||||
'timo1q.os',
|
||||
'topglove',
|
||||
'totalimage',
|
||||
'haniszalikhaofficial',
|
||||
'tremella.os',
|
||||
'trudolly.os',
|
||||
'trulife.os',
|
||||
'sofnonshop.os',
|
||||
'tyt1957',
|
||||
'ujuwon.os',
|
||||
'unicaremalaysia',
|
||||
'vitahealth.os',
|
||||
'vnutripharm.os',
|
||||
'valens.nutrition',
|
||||
'vircast.os',
|
||||
'vitagreen.official.my',
|
||||
'vitascience.os',
|
||||
'oujiwalch',
|
||||
'winwa.os',
|
||||
'wrightlife.my',
|
||||
'xkoomy',
|
||||
'yohopower.os',
|
||||
'youvitmalaysia',
|
||||
'yukazan',
|
||||
'yummihousemy',
|
||||
'yuwell.os',
|
||||
'3mlittmann.os',
|
||||
'medicareproducts',
|
||||
];
|
||||
$shopee_sellers = [
|
||||
'isawmedical',
|
||||
'rochediagnostic.digital.my',
|
||||
'euyansang.os',
|
||||
'a27139200.os',
|
||||
'abbioticsmy.os',
|
||||
'agnutrition.os',
|
||||
'airinummy',
|
||||
'activelifemalaysia',
|
||||
'alpro',
|
||||
'apexpharmacy',
|
||||
'appeton.os',
|
||||
'ash2.os',
|
||||
'a.plus.os',
|
||||
'babybee.os',
|
||||
'backjoymalaysia',
|
||||
'bamnatural',
|
||||
'bardox.co',
|
||||
'bayerconsumerhealth.os',
|
||||
'bengkungmedikalturki',
|
||||
'benourish.os',
|
||||
'berryc.hq',
|
||||
'bhbhealth',
|
||||
'feeksempire.os',
|
||||
'biogro',
|
||||
'bioaquacelmalaysia',
|
||||
'biolife.malaysia',
|
||||
'biocareofficialstore',
|
||||
'biogreenofficial',
|
||||
'biogrow.os',
|
||||
'bioley.os',
|
||||
'bloomylotus.os',
|
||||
'bloomfood.co',
|
||||
'bonlife.os',
|
||||
'bgdrug.os',
|
||||
'morehope.my',
|
||||
'comvita.os',
|
||||
'caremarkofficial.os',
|
||||
'catalo.os',
|
||||
'certaintyofficialstore',
|
||||
'champs.os',
|
||||
'changefit.os',
|
||||
'cleverinmalaysia',
|
||||
'care.os',
|
||||
'capkakitiga.os',
|
||||
'callie.os',
|
||||
'cosway.os',
|
||||
'durex.os',
|
||||
'comfier.my',
|
||||
'coreblueepro',
|
||||
'curaproxmy',
|
||||
'darco.os',
|
||||
'deeyeo.os',
|
||||
'dermaltherapy.os',
|
||||
'dettol.os',
|
||||
'dfenze',
|
||||
'deltamart.os',
|
||||
'ntpm.my',
|
||||
'doctoroncall.os',
|
||||
'drbei.os',
|
||||
'drclo.os',
|
||||
'dr.elizabeths',
|
||||
'dr.isla.my',
|
||||
'dr.isla',
|
||||
'drmoshealthcaresdnbhd',
|
||||
'duopharma.os',
|
||||
'easytomorrowmy',
|
||||
'egreenbeans',
|
||||
'eldonhealthcare.os',
|
||||
'elkenofficial',
|
||||
'empromalaysia',
|
||||
'eucapro.os',
|
||||
'ezywipes.os',
|
||||
'extreme.my',
|
||||
'finefoodsmy.os',
|
||||
'freestylelibre.os',
|
||||
'wiproconsumercare.my',
|
||||
'gazillionnutrition.os',
|
||||
'gintell',
|
||||
'gkbio.official.store',
|
||||
'gote.club',
|
||||
'grapeking.os',
|
||||
'greencyh.os',
|
||||
'grnkorea.os',
|
||||
'guardian.os',
|
||||
'soapberrygubao.os',
|
||||
'halagelmalaysia',
|
||||
'hanamedicofficial',
|
||||
'hannaancient.my.os',
|
||||
'hansaplast.my',
|
||||
'pgstoremy',
|
||||
'healthlanefamilypharmacy',
|
||||
'hansherbs',
|
||||
'haoyikangmy',
|
||||
'supreprobiotics',
|
||||
'healnutrition.os',
|
||||
'herbalfarmer',
|
||||
'healthparadise.os',
|
||||
'healthyhugqn.my',
|
||||
'nhdetoxlim.os',
|
||||
'herbion.os',
|
||||
'herbsofgold.os',
|
||||
'hoyanhor',
|
||||
'houmhygiene',
|
||||
'hovidnutriworld',
|
||||
'wyatt760513.os',
|
||||
'horigenmy.my',
|
||||
'homecareshop.os',
|
||||
'holy.shopee.my',
|
||||
'himalayamalaysia',
|
||||
'himalaya.natural',
|
||||
'hh.herbhealth.os',
|
||||
'itsuworld.os',
|
||||
'ideal.beauty.alliance88',
|
||||
'idsmedmalaysia',
|
||||
'ihoco',
|
||||
'imfrom.my',
|
||||
'incrediwear.os',
|
||||
'insmartofficialstore.my',
|
||||
'isoderm.os',
|
||||
'jamujelita.my',
|
||||
'a0907512010.os',
|
||||
'jinkairui.os',
|
||||
'jointwell',
|
||||
'jordan.os',
|
||||
'joyofoiling',
|
||||
'jsnhorizon',
|
||||
'jt0886.os',
|
||||
'jynns.os',
|
||||
'kacangmacha.os',
|
||||
'kalbe.my',
|
||||
'kcare.os',
|
||||
'kedaidiabetes.luka',
|
||||
'kedaimasalahlututkaki',
|
||||
'kinohimitsu.os',
|
||||
'kitsui.my.hq',
|
||||
'kobee.os',
|
||||
'huggies.os',
|
||||
'labelletea51.my',
|
||||
'laohuangju.os',
|
||||
'lennox.os',
|
||||
'vinegarbless.my',
|
||||
'lifespace.os',
|
||||
'lifespaceofficial.my.my',
|
||||
'loveearth.os',
|
||||
'unilevermy',
|
||||
'mirafilzah.os',
|
||||
'lushproteinmy',
|
||||
'm2.os',
|
||||
'manfortlab',
|
||||
'mariafaridasignature.os',
|
||||
'medicos.os',
|
||||
'medicurve',
|
||||
'mediqtto.os',
|
||||
'medisanaofficialstore',
|
||||
'medishield.regretless',
|
||||
'mf3.os',
|
||||
'mijep.my',
|
||||
'mobees.os',
|
||||
'mpdsummit',
|
||||
'muscletech.official',
|
||||
'mutyara.os',
|
||||
'myprotein.official',
|
||||
'nestidante.os',
|
||||
'naamskin',
|
||||
'nanojapan',
|
||||
'nanosingaporemy',
|
||||
'naturahousemalaysia',
|
||||
'natureswaymy.os',
|
||||
'neutrovis.os',
|
||||
'manukahealth.my',
|
||||
'nitrione.os',
|
||||
'nixoderm.os',
|
||||
'nowfoodsofficialmy',
|
||||
'nulatexmy',
|
||||
'nutrafem.os',
|
||||
'nutrione.os',
|
||||
'nusamedic.os',
|
||||
'nutriva888',
|
||||
'nutrixgold.os',
|
||||
'one.os',
|
||||
'offen.os',
|
||||
'ogawacorp.',
|
||||
'olivenol.os',
|
||||
'oilypod',
|
||||
'olo.os',
|
||||
'earthvitamins.os',
|
||||
'omron.os',
|
||||
'onecare.os',
|
||||
'onetouch.os',
|
||||
'oppo.os',
|
||||
'optimumnutrition.os',
|
||||
'oradexhb',
|
||||
'organicule',
|
||||
'orthosoft.os',
|
||||
'osim.os',
|
||||
'osteoactiv.os',
|
||||
'myostricare',
|
||||
'ostrovit.os',
|
||||
'p.love.os',
|
||||
'pghealth.my',
|
||||
'pandababytw.os',
|
||||
'pharmanutrihq',
|
||||
'pharmsvilleofficial.os',
|
||||
'pk24advanced.os',
|
||||
'playsafeunlimitedmalaysia',
|
||||
'popi.os',
|
||||
'psang.os',
|
||||
'bloodofficialstoremy',
|
||||
'purelyb123',
|
||||
'puremed.os',
|
||||
'quanstarbiotech.os',
|
||||
'quinlivan.os',
|
||||
'rossmax.os',
|
||||
'rafyaakob.os',
|
||||
'restore.os',
|
||||
'rosken.os',
|
||||
'rtopr.os',
|
||||
'scitecnutrition.os',
|
||||
'sambucol.os',
|
||||
'sanofiofficialstore',
|
||||
'scentpur.os',
|
||||
'scseven',
|
||||
'simply.os',
|
||||
'sinocare.os',
|
||||
'kyuwlcdcu5',
|
||||
'snowfit.os',
|
||||
'solaray',
|
||||
'soluxe',
|
||||
'southerncrescent.malaysia',
|
||||
'spaceylon.com.my',
|
||||
'splat.os',
|
||||
'springhealthofficial',
|
||||
'functionalfoodclub',
|
||||
'sunstar.os',
|
||||
'suubalm.os',
|
||||
'naturaloptions.os',
|
||||
'swisseoverseas.os',
|
||||
'swisse.malaysia',
|
||||
'tanameraofficial',
|
||||
'find.us.here.tenga.my',
|
||||
'tenga.os',
|
||||
'theaprilab2vq.my',
|
||||
'therabreath.os',
|
||||
'theragun.os',
|
||||
'tigerbalm.os',
|
||||
'timo1q.os',
|
||||
'topglove',
|
||||
'totalimage',
|
||||
'haniszalikhaofficial',
|
||||
'tremella.os',
|
||||
'trudolly.os',
|
||||
'trulife.os',
|
||||
'sofnonshop.os',
|
||||
'tyt1957',
|
||||
'ujuwon.os',
|
||||
'unicaremalaysia',
|
||||
'vitahealth.os',
|
||||
'vnutripharm.os',
|
||||
'valens.nutrition',
|
||||
'vircast.os',
|
||||
'vitagreen.official.my',
|
||||
'vitascience.os',
|
||||
'oujiwalch',
|
||||
'winwa.os',
|
||||
'wrightlife.my',
|
||||
'xkoomy',
|
||||
'yohopower.os',
|
||||
'youvitmalaysia',
|
||||
'yukazan',
|
||||
'yummihousemy',
|
||||
'yuwell.os',
|
||||
'3mlittmann.os',
|
||||
'medicareproducts',
|
||||
];
|
||||
|
||||
$category = Category::where('country_locale_slug','my')->where('name','Health')->first();
|
||||
$category = Category::where('country_locale_slug', 'my')->where('name', 'Health')->first();
|
||||
|
||||
foreach ($shopee_sellers as $seller)
|
||||
{
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
foreach ($shopee_sellers as $seller) {
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\ShopeeSellerCategory;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ShopeeHomeLivingCategorySeeder extends Seeder
|
||||
@@ -14,17 +13,16 @@ class ShopeeHomeLivingCategorySeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$shopee_sellers = ["aands.os", "acerpure.os", "acsonmalaysia.os", "aicook.my", "airbotmalaysia", "alphaofficialstore", "aolonmalaysia.os", "aolon.os", "aqara.os", "bacony.my", "bearofficialstore.os", "butterflymalaysia.os", "bacfree.os", "bearglobal.my", "beko.os", "bestdenkimy", "biolomix.os", "biolomixlocal.my", "bissellmy", "blueair.os", "boschhomeappliancesmy.os", "boschmy", "bossmankaden", "brunomalaysia", "corvan.os", "charlcomy", "chiqmalaysia", "valeo.os", "cookraze", "cornell.os", "cosori.os", "courts.os", "cuckoo.os", "delonghi.os", "desahome.os", "daikinmy.os", "daytech.os", "deerma.malaysia", "delfino.os", "amazefanbrandshop.my", "delonghi.os", "panasonic888.os", "deroma.os", "dibea.os", "domus18", "dreamecopperconnect", "dreamemy.os", "officialdysonstore", "ecoluxemalaysia", "ecovacs.os", "edgewall.os", "eksexprez", "elba.os", "electricalshopmy", "electrolux.os", "electrova", "shinghing", "erainetmy", "eroc.my", "etouchplus.os", "europlus.os", "ezilah.os", "faber.os", "fanzomalaysia", "fotile.os", "gaabor.os", "gell.os", "giselleha", "gogeousofficial", "haier.os", "hanriver.malaysia.my", "hanriver.official", "hanabishi.os", "haniertv", "hatarimalaysia", "hericaine.os", "hetch", "hibrew.os", "hiconos", "hiraki.os", "hisensecertifiedstore.os", "hitachi.os", "homeessentialmall.os", "hitec.os", "hizero.os", "hodekt.official.my", "homeessentialmall.os", "huashengonlineshop", "huromofficial", "igadgets", "ilife.os", "imaxx", "innofoodstore", "instantpot.os", "irisohyama.os", "irobot.os", "isonicofficialstore", "jabenmalaysia", "jafairsolution.os", "jamaystore.my", "jeeteemalaysia.os", "jhhomeappliances", "jimmy.os", "jisulife.my", "wendykao.os", "joyamios", "tenkaryohin", "kadonio.my", "kaizendenkimy", "baolijie123.my", "kgcadvance", "khind.os", "khindborneo.os", "kimviento.os", "kimviento.my", "kitchenaid.os", "konkacreative", "konkadirect.os", "kpielectrical", "kronoshop", "kuvings.os", "lebensstil.os", "lemax.official", "levoit.os", "lg.os", "lionmas", "morphyrichards.os", "mayer.os", "morgan.kings", "mbh.os", "maxiestore", "maxiestore", "meckmy.os", "megraos", "miui.os", "mmxmalaysia", "muzen.os", "nakadagroup.os", "mynarwal", "nescafedolcegusto.os", "nesh.os", "sharkninjaofficial", "njoi.os", "norviamalaysia", "olayksmy.os", "onehomeappliance", "itsasomarketing", "onemoon.os", "philips.my", "panasonic.malaysia", "panasonic.authorised.partner", "panasonic.elite", "panasonic.partner", "panasonicsignaturemall", "pensonic", "pensonic", "perysmith", "philipstv.os", "picogram.os", "proscenic.os", "retekess.my", "rezo.os", "riino.os", "rinnai.os", "robam.os", "roborockmalaysia", "rubine.os", "russelltaylors.os", "selamat.os", "sonystore.os", "sakura.os", "samsungappliancesos", "samsungbrandstoremy.os", "samugiken.os", "samview.os", "sanus.os", "scottmiller", "sensonic.my", "shibuifujiaire", "shimonomalaysia.os", "simplusmalaysia", "sincero.os", "singermy", "skmagicmy.os", "skyworth.os", "smartlifestyle99", "smartmi.os", "snfonline", "sodaxpress", "soundteohmy.os", "sterramy", "sunatur", "sureloc.os", "swissthomas.os", "switchbot.os", "tbm.os", "tanradio.com", "tanradio.com", "tcl.os", "thebaker.os", "thermomixmalaysia", "tineco.os", "tjean.os", "tonze.my", "toshibatv.os", "urban.home", "uwantmalaysia", "vcomm.os", "viewsonic.os", "vizon.os", "yeedi.os", "yetair", "yilizomana.os", "360smartlife.os"
|
||||
];
|
||||
$shopee_sellers = ['aands.os', 'acerpure.os', 'acsonmalaysia.os', 'aicook.my', 'airbotmalaysia', 'alphaofficialstore', 'aolonmalaysia.os', 'aolon.os', 'aqara.os', 'bacony.my', 'bearofficialstore.os', 'butterflymalaysia.os', 'bacfree.os', 'bearglobal.my', 'beko.os', 'bestdenkimy', 'biolomix.os', 'biolomixlocal.my', 'bissellmy', 'blueair.os', 'boschhomeappliancesmy.os', 'boschmy', 'bossmankaden', 'brunomalaysia', 'corvan.os', 'charlcomy', 'chiqmalaysia', 'valeo.os', 'cookraze', 'cornell.os', 'cosori.os', 'courts.os', 'cuckoo.os', 'delonghi.os', 'desahome.os', 'daikinmy.os', 'daytech.os', 'deerma.malaysia', 'delfino.os', 'amazefanbrandshop.my', 'delonghi.os', 'panasonic888.os', 'deroma.os', 'dibea.os', 'domus18', 'dreamecopperconnect', 'dreamemy.os', 'officialdysonstore', 'ecoluxemalaysia', 'ecovacs.os', 'edgewall.os', 'eksexprez', 'elba.os', 'electricalshopmy', 'electrolux.os', 'electrova', 'shinghing', 'erainetmy', 'eroc.my', 'etouchplus.os', 'europlus.os', 'ezilah.os', 'faber.os', 'fanzomalaysia', 'fotile.os', 'gaabor.os', 'gell.os', 'giselleha', 'gogeousofficial', 'haier.os', 'hanriver.malaysia.my', 'hanriver.official', 'hanabishi.os', 'haniertv', 'hatarimalaysia', 'hericaine.os', 'hetch', 'hibrew.os', 'hiconos', 'hiraki.os', 'hisensecertifiedstore.os', 'hitachi.os', 'homeessentialmall.os', 'hitec.os', 'hizero.os', 'hodekt.official.my', 'homeessentialmall.os', 'huashengonlineshop', 'huromofficial', 'igadgets', 'ilife.os', 'imaxx', 'innofoodstore', 'instantpot.os', 'irisohyama.os', 'irobot.os', 'isonicofficialstore', 'jabenmalaysia', 'jafairsolution.os', 'jamaystore.my', 'jeeteemalaysia.os', 'jhhomeappliances', 'jimmy.os', 'jisulife.my', 'wendykao.os', 'joyamios', 'tenkaryohin', 'kadonio.my', 'kaizendenkimy', 'baolijie123.my', 'kgcadvance', 'khind.os', 'khindborneo.os', 'kimviento.os', 'kimviento.my', 'kitchenaid.os', 'konkacreative', 'konkadirect.os', 'kpielectrical', 'kronoshop', 'kuvings.os', 'lebensstil.os', 'lemax.official', 'levoit.os', 'lg.os', 'lionmas', 'morphyrichards.os', 'mayer.os', 'morgan.kings', 'mbh.os', 'maxiestore', 'maxiestore', 'meckmy.os', 'megraos', 'miui.os', 'mmxmalaysia', 'muzen.os', 'nakadagroup.os', 'mynarwal', 'nescafedolcegusto.os', 'nesh.os', 'sharkninjaofficial', 'njoi.os', 'norviamalaysia', 'olayksmy.os', 'onehomeappliance', 'itsasomarketing', 'onemoon.os', 'philips.my', 'panasonic.malaysia', 'panasonic.authorised.partner', 'panasonic.elite', 'panasonic.partner', 'panasonicsignaturemall', 'pensonic', 'pensonic', 'perysmith', 'philipstv.os', 'picogram.os', 'proscenic.os', 'retekess.my', 'rezo.os', 'riino.os', 'rinnai.os', 'robam.os', 'roborockmalaysia', 'rubine.os', 'russelltaylors.os', 'selamat.os', 'sonystore.os', 'sakura.os', 'samsungappliancesos', 'samsungbrandstoremy.os', 'samugiken.os', 'samview.os', 'sanus.os', 'scottmiller', 'sensonic.my', 'shibuifujiaire', 'shimonomalaysia.os', 'simplusmalaysia', 'sincero.os', 'singermy', 'skmagicmy.os', 'skyworth.os', 'smartlifestyle99', 'smartmi.os', 'snfonline', 'sodaxpress', 'soundteohmy.os', 'sterramy', 'sunatur', 'sureloc.os', 'swissthomas.os', 'switchbot.os', 'tbm.os', 'tanradio.com', 'tanradio.com', 'tcl.os', 'thebaker.os', 'thermomixmalaysia', 'tineco.os', 'tjean.os', 'tonze.my', 'toshibatv.os', 'urban.home', 'uwantmalaysia', 'vcomm.os', 'viewsonic.os', 'vizon.os', 'yeedi.os', 'yetair', 'yilizomana.os', '360smartlife.os',
|
||||
];
|
||||
|
||||
$category = Category::where('country_locale_slug','my')->where('name','Home & Living')->first();
|
||||
$category = Category::where('country_locale_slug', 'my')->where('name', 'Home & Living')->first();
|
||||
|
||||
foreach ($shopee_sellers as $seller)
|
||||
{
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
foreach ($shopee_sellers as $seller) {
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user