Domain\Matter\Http\Requests\UpdateRequest::rules PHP Method

rules() public method

Get the validation rules that apply to the request.
public rules ( ) : array
return array
    public function rules()
    {
        $id = $this->route('matter');
        return ['name' => 'required|max:40|unique:matters,name,' . $id, 'workload' => 'required|integer|min:1|max:9999999'];
    }
UpdateRequest