mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- SnapDeal added - Nykaa added - Tata CLiQ added - Ajio added Fixes: - RSS feed breaks if product has no image - amazon title wasn't being picked up. Took 2 hours 45 minutes
36 lines
660 B
PHP
36 lines
660 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Store;
|
|
use App\Models\User;
|
|
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
|
|
if (app()->isLocal())
|
|
User::create([
|
|
'email' => 'test@test.com',
|
|
'password' => 'password',
|
|
'name' => 'password',
|
|
]);
|
|
|
|
$this->call([
|
|
StoreSeeder::class,
|
|
]);
|
|
|
|
|
|
|
|
Store::whereIn('domain',[
|
|
'fnac.com'
|
|
])->delete();
|
|
}
|
|
}
|