<?php

namespace Modules\Dummy\Database\Seeders\Core\versions\v1_6_0;

use Illuminate\Database\Seeder;
use App\Models\Language;

class LanguagesTableSeeder extends Seeder
{

    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {

        $dbPermission = Language::where([
            'name' => 'Sweden',
        ])->first();

        if (!$dbPermission) {
            Language::insert([
                'name' => 'Sweden',
                'short_name' => 'sv',
                'flag' => NULL,
                'status' => 'Active',
                'is_default' => 0,
                'direction' => 'ltr',
            ]);
        }

    }
}
