BookStoreRequest
class BookStoreRequest extends FormRequest (View source)
Handles validation for creating a new book.
Methods
bool
authorize()
Determine if the user is authorized to make this request.
array
rules()
Get the validation rules that apply to the request.
void
withValidator(Validator $validator)
Add additional validation for duplicate book entries.
array
messages()
Return custom validation messages in Portuguese.
void
prepareForValidation()
Prepare and sanitize input data before validation.
string
input(string $key, mixed $default)
No description
void
merge(array $input)
No description
mixed
route(string $key = null, mixed $default)
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.
void
withValidator(Validator $validator)
Add additional validation for duplicate book entries.
array
messages()
Return custom validation messages in Portuguese.
protected void
prepareForValidation()
Prepare and sanitize input data before validation.
string
input(string $key, mixed $default)
No description
void
merge(array $input)
No description
mixed
route(string $key = null, mixed $default)
No description