SchoolClassStoreRequest
class SchoolClassStoreRequest extends FormRequest (View source)
Handles validation for creating a new school class.
Prepares input data, validates course, term, start and end dates, and ensures uniqueness of class data.
Methods
Determine if the user is authorized to make this request.
Get the validation rules that apply to the request.
Add additional validation rules after the initial rules are applied.
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.
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.
void
withValidator(Validator $validator)
Add additional validation rules after the initial rules are applied.
Ensures that the combination of course, regime, start_date, and end_date is unique in the database.
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.
void
merge(array $input)
Merge new input into the request's data.
array
only(array|string $keys)
Retrieve only a subset of input data.