Update DatabaseSeeder.php

This commit is contained in:
Bozhidar 2024-04-25 17:04:06 +03:00
parent 878b98a2f8
commit 8cb3f8e7c9

View file

@ -6,6 +6,7 @@ namespace Database\Seeders;
use App\Models\Backup;
use App\Models\Customer;
use App\Models\HostingPlan;
use App\Models\HostingSubscriptionBackup;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
@ -18,6 +19,9 @@ class DatabaseSeeder extends Seeder
$backup = new Backup();
$backup->checkCronJob();
$backup = new HostingSubscriptionBackup();
$backup->checkCronJob();
$findCustomer = Customer::where('email', 'jhondoe@gmail.com')->first();
if (! $findCustomer) {
Customer::create([