Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /home/elvh3918/public_html/tenant/database/seeders/Master/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/elvh3918/public_html/tenant/database/seeders/Master/TenantSeeder.php
<?php

namespace Database\Seeders\Master;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;

class TenantSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $now = Carbon::now();
        $curr = DB::table('currencies')->where('is_active', '=', 1)->where('is_default', '=', 1)->first();
        $curr_id = $curr->id;

        DB::insert(
            "INSERT INTO tenant (code, name, owner, address, email, phone, curr_id, created_at, updated_at) VALUES 
            ('DPS', 'Diapersky Sp. z o.o.', 'Elsa Aprelia', 'Śmiecińska 14, 06-400 Ciechanów', 'diapersky@el-vanda.com', '+48 2367 xxx', $curr_id, '$now', '$now')
            ;"
        );
    }
}

Yohohohohohooho | Sanrei Aya