���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
portal-cutunix
/
app
/
Rules
/
Viewing: WasteWoods.php
<?php namespace App\Rules; use Closure; use Illuminate\Contracts\Validation\ValidationRule; class WasteWoods implements ValidationRule { /** * Run the validation rule. * * @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail */ public function validate(string $attribute, mixed $value, Closure $fail): void { $realSheetIndex = explode('.', $attribute)[1] + 1; if ($value['has_waste']) { if (!is_array($value['waste_woods'])) { $fail("قالب ورودی پِرتی های ورق {$realSheetIndex} صحیح نیست"); } foreach ($value['waste_woods'] as $index => $woods) { $realWasteIndex = $index + 1; if (empty($woods['length']) || empty($woods['width']) || empty($woods['count'])) { $fail("ابعاد یا تعداد پِرتی شماره {$realWasteIndex} ورق {$realSheetIndex} صحیح نیست"); } } } } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa