Update DatabaseSeeder.php

This commit is contained in:
Bozhidar 2024-04-25 15:53:17 +03:00
parent 071a519db5
commit d3a27764a8

View file

@ -3,6 +3,7 @@
namespace Database\Seeders; namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents; // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\Backup;
use App\Models\Customer; use App\Models\Customer;
use App\Models\HostingPlan; use App\Models\HostingPlan;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
@ -14,6 +15,8 @@ class DatabaseSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
$backup = new Backup();
$backup->checkCronJob();
$findCustomer = Customer::where('email', 'jhondoe@gmail.com')->first(); $findCustomer = Customer::where('email', 'jhondoe@gmail.com')->first();
if (! $findCustomer) { if (! $findCustomer) {