SchoolClassUpdateRequest
class SchoolClassUpdateRequest extends FormRequest (View source)
Handles validation for updating an existing school class.
Prepares and sanitizes input data and validates optional fields: course, term, start_date, and end_date.
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.
Determine if the request contains a given input key.
Merge new input into the request's data.
Retrieve all input data or a subset.
Retrieve only a subset of input 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.
Trims whitespace from all input fields and formats date fields.
mixed
input(string $key, mixed $default = null)
Retrieve an input item from the request.
bool
has(string $key)
Determine if the request contains a given input key.
void
merge(array $input)
Merge new input into the request's data.
array
all(?array $keys = null)
Retrieve all input data or a subset.
array
only(array|string $keys)
Retrieve only a subset of input data.