Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
app
/
Domain
/
Counterparty
/
Requests
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
CreateNewRequest.php
1.382KB
edt
ren
Dto.php
0KB
edt
ren
UpdateRequest.php
1.345KB
edt
ren
<?php declare(strict_types=1); namespace App\Domain\Counterparty\Requests; use App\BaseClasses\BaseApiRequest; use App\Domain\Counterparty\Enums\CounterPartyTypeEnum; use Illuminate\Validation\Rule; class CreateNewRequest extends BaseApiRequest { public static function bodyParameters(): array { return [ 'name' => ['description' => 'name'], 'short_name' => ['description' => 'short_name'], 'inn' => ['description' => 'inn'], 'kpp' => ['description' => 'kpp'], 'comment' => ['description' => 'comment'], 'c_type' => ['description' => 'c_type'], ]; } public static function example(): array { return [ 'name' => 'Тестовый контрагент', 'inn' => '123456789012', 'kpp' => '123456789', 'comment' => 'Это комментарий', 'c_type' => CounterPartyTypeEnum::TYPE_SUPPLIER->value, ]; } public function rules(): array { return [ 'name' => 'string|required', 'inn' => 'string|required', 'kpp' => 'string|nullable', 'comment' => 'string|nullable', 'c_type' => ['string', 'nullable', Rule::in([CounterPartyTypeEnum::TYPE_STAFF->value, CounterPartyTypeEnum::TYPE_SUPPLIER->value]) ] ]; } }
<=Back
Liking