sync
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user