uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
learnoid.codeskitter.site
/
database
/
seeders
/
LanguageSeeder.php
/
/
<?php namespace Database\Seeders; use App\Repositories\LanguageRepository; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\File; class LanguageSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $folderPath = base_path('lang'); // actual folder path if (File::isDirectory($folderPath)) { $files = File::allFiles($folderPath); $fileNames = []; foreach ($files as $file) { $fileName = $file->getFilenameWithoutExtension(); if ($fileName != 'installer_messages') { $fileNames[] = $fileName; } } foreach ($fileNames as $fileName) { LanguageRepository::query()->updateOrCreate( ['name' => $fileName], ['title' => $fileName, 'created_at' => now()] ); } $languageNames = LanguageRepository::query()->whereIn('name', $fileNames)->pluck('name')->toArray(); foreach ($fileNames as $fileName) { if (count(array_keys($languageNames, $fileName)) > 1) { LanguageRepository::query() ->where('name', $fileName) ->orderByDesc('id') ->skip(1) ->delete(); } } } } }
/home/users/unlimited/www/learnoid.codeskitter.site/database/seeders/LanguageSeeder.php