<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Admin\AppSettings;
use App\Models\Admin\BasicSettings;

class UpdateFeatureSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
          if(BasicSettings::first()) {
            BasicSettings::first()->update([
                'web_version'       => "2.0.0",
            ]);
        }
        if(AppSettings::first()){
            AppSettings::first()->update([
                'version' => '2.0.0',
                'vendor_version' => '2.0.0',
                'manager_version' => '2.0.0'
            ]);
        }
    }
}
