1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 19:04:31 +00:00
Files
education-project/app/Http/Requests/SchoolClassRequest.php
2020-12-03 23:33:04 +07:00

23 lines
414 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Http\Requests;
class SchoolClassRequest extends ApiFormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'number' => 'required|integer|between:1,11',
'letter' => 'required|max:1|regex:/[а-я]/',
'profile' => 'required',
];
}
}