CopyAddRequest
class CopyAddRequest extends FormRequest (View source)
Form request responsible for validating data when adding copies to a book.
This request ensures that the number of copies (amount) is a valid positive integer.
Methods
Determine if the user is authorized to make this request.
Get the validation rules that apply to the request.
Get the custom messages for validation errors.
Prepare the data for validation by sanitizing and normalizing inputs.
No description
No description
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 the custom messages for validation errors.
protected void
prepareForValidation()
Prepare the data for validation by sanitizing and normalizing inputs.
This method trims string values and casts numeric inputs to the appropriate type before the validation rules are applied.
string
input(string $key, mixed $default)
No description
void
merge(array $input)
No description