| 1234567891011121314151617181920212223242526272829303132333435363738394041 | <?phpnamespace App\Http\Requests\Meter;use App\Http\Requests\Request;class ServiceFeedbackRequest extends Request{    /**     * 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 [            'site_id' => 'required|numeric',            'service_type' => 'required|numeric',            'remark' => 'nullable',        ];    }    public function attributes()    {        return [            'site_id' => '项目',            'service_type' => '选择服务',            'remark' => '备注',        ];    }}
 |