123456789101112131415161718192021222324252627 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Mead
- * Date: 2019/8/5
- * Time: 3:22 PM
- */
- namespace App\Http\Requests;
- use App\Validators\Rules;
- class QuestionRequest extends FormRequest
- {
- /**
- * Get the validation rules that apply to the request.
- *
- * @return array
- */
- public function rules()
- {
- return [
- 'question' => 'required|string|min:10|max:200',
- 'area_id' => Rules::area_id
- ];
- }
- }
|