MusicianWithdrawStatusRequest.php 971 Bytes
<?php

namespace App\Http\Requests\Musician;

use Illuminate\Foundation\Http\FormRequest;

/**
 * Class MusicianWithdrawStatusRequest
 * @package App\Http\Requests\Musician
 */
class MusicianWithdrawStatusRequest 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 [
            'busi_id' => ['required', 'bail', 'array', 'filled'],
            'type' => ['required', 'bail', 'in:success,fail,advance'],
        ];
    }

    /**
     * @return string[]
     */
    public function messages(): array
    {
        return [
            'busi_id.required'=> '请提供业务流水号',
            'type.required' =>  '请提供有效的提现状态变更',
        ];
    }
}