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 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user