UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_46e49d2c2b2b
/
app
/
Http
/
Requests
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
UserCartRequest.php
<?php namespace EstudioLMS\Http\Requests; use EstudioLMS\Http\Requests\Request; class UserCartRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required', 'cpf' => 'required|cpf_cnpj', 'address.zip_code' => 'required', 'address.street' => 'required', 'address.number' => 'required', 'address.neighborhood' => 'required', 'address.city' => 'required', 'address.state' => 'required', ]; } public function attributes() { return [ 'address.zip_code' => 'CEP', 'address.street' => 'Rua (Logradouro)', 'address.number' => 'NmĂșero', 'address.neighborhood' => 'Bairro', 'address.city' => 'Cidade', 'address.state' => 'Estado', ]; } /** * Get the proper failed validation response for the request. * * @param array $errors * @return \Symfony\Component\HttpFoundation\Response */ public function response(array $errors) { if ($this->ajax() || $this->wantsJson()) { $return = [ 'fail' => true, 'errors' => $errors ]; return \Response::json($return); } return $this->redirector->to($this->getRedirectUrl()) ->withInput($this->except($this->dontFlash)) ->withErrors($errors, $this->errorBag); } }
Copyright © 2026 - UnknownSec