MusicianWithdrawBillConfirmRequest.php 831 Bytes
<?php

namespace App\Http\Requests\Musician;

use Illuminate\Foundation\Http\FormRequest;

/**
 * Class MusicianWithdrawBillConfirmRequest
 * @package App\Http\Requests\Musician
 */
class MusicianWithdrawBillConfirmRequest 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 [
            'serial_no' => ['required', 'bail'],
        ];
    }

    /**
     * @return string[]
     */
    public function messages(): array
    {
        return [
            'serial_no.required' =>  '请提供版权订单流水号',
        ];
    }
}