LoanStoreRequest
class LoanStoreRequest extends FormRequest (View source)
Form request responsible for validating data when storing a new loan.
Prepares input data by sanitizing the CPF and ISBN, and validates the presence and types of CPF, ISBN, and copy number.
Methods
Determine if the user is authorized to make this request.
Get the validation rules that apply to the request.
Get custom error messages for validation failures.
Prepare input data before validation.
Retrieve an input item from the request.
Merge new input into the request's data.
Details
bool
authorize()
Determine if the user is authorized to make this request.
array
rules()
Get the validation rules that apply to the request.
array
messages()
Get custom error messages for validation failures.
protected void
prepareForValidation()
Prepare input data before validation.
Sanitizes the CPF by removing non-digits and the ISBN by removing all characters except digits and 'X'.
mixed
input(string $key, mixed $default = null)
Retrieve an input item from the request.
void
merge(array $input)
Merge new input into the request's data.