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