HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/otium.komma.nl/database/seeds/RemoveGermanLanguageFromSite.php
<?php

use App\Site\Site;
use Illuminate\Database\Seeder;

class RemoveGermanLanguageFromSite extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $site = Site::where('slug', '=', 'default')->first();

        if($site) {
            // Here we remove the German language (id:50) from the site_languages table
            // This is currently needed because it is automatically seeded in there from the kms core seed.
            $site->languages()->detach(50);
        }
    }
}