Server IP : 66.29.132.124 / Your IP : 18.188.218.134 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/database/seeders/ |
Upload File : |
<?php namespace Database\Seeders; use Illuminate\Support\Str; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Modules\Media\Models\MediaFile; class Language extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('core_settings')->insert([ [ 'name' => 'site_locale', 'val' => 'en', 'group' => "general", ], [ 'name' => 'site_enable_multi_lang', 'val' => 1, 'group' => "general", ], [ 'name' => 'enable_rtl_egy', 'val' => 1, 'group' => "general", ] ]); DB::table('core_languages')->insert([ [ 'locale' => 'en', 'name' => 'English', 'flag' => "gb", 'status' => "publish", 'create_user' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'), ], [ 'locale' => 'ja', 'name' => 'Japanese', 'flag' => "jp", 'status' => "publish", 'create_user' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'), ], [ 'locale' => 'egy', 'name' => 'Egyptian', 'flag' => "eg", 'status' => "publish", 'create_user' => 1, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'), ], ]); } }