12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace App\Http\Requests;
- use Illuminate\Foundation\Http\FormRequest;
- class RechargeConfigurationRequest extends FormRequest
- {
- /**
- * Determine if the user is authorized to make this request.
- *
- * @return bool
- */
- public function authorize()
- {
- return true;
- }
- /**
- * Get the validation rules that apply to the request.
- *
- * @return array
- */
- public function rules()
- {
- return [
- //
- 'name' => 'required',
- 'recharge_money' => 'required',
- 'give_money' => 'required',
- 'status' => 'required',
- // 'discount' => 'required',
- 'area_id' => 'required',
- 'start_at' => 'required',
- 'end_at' => 'required'
- ];
- }
- public function attributes()
- {
- return [
- 'name' => '名称',
- 'recharge_money' => '充值金额',
- 'give_money' => '赠送金额',
- 'status' => '状态',
- // 'discount' => 'required',
- 'area_id' => '区域',
- 'start_at' => '开始时间',
- 'end_at' => '结束时间'
- ];
- }
- }
|