⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.184
Server IP:
65.21.180.239
Server:
Linux gowhm.eplangoweb.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
1305819
/
cwd
/
www
/
app
/
Http
/
Requests
/
Checkout
/
View File Name :
CheckoutRequest.php
<?php namespace App\Http\Requests\Checkout; use Illuminate\Foundation\Http\FormRequest; class CheckoutRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'first_name' => 'required', 'last_name' => 'required', 'company_name' => 'required', 'username' => 'required', 'password' => 'required', 'email' => 'required|email', 'phone' => 'required', 'country' => 'required', 'price' => 'required', 'payment_method' => $this->price != 0 ? 'required' : '', 'receipt' => $this->is_receipt == 1 ? 'required | mimes:jpeg,jpg,png' : '', 'cardNumber' => 'sometimes|required', 'month' => 'sometimes|required', 'year' => 'sometimes|required', 'cardCVC' => 'sometimes|required', ]; } public function messages(): array { return [ 'receipt.required' => 'The receipt field image is required when instruction required receipt image' ]; } }