app/Http/Requests/SendSmsRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'recipientNumber'   => ['required', 'numeric', 'digits:11'],
            'username'          => ['required' ,'string', new RemoteUserRule()],
            'SMSData'           => ['required', 'array']
        ];
    }
public function rules ( ) { return [ 'recipientNumber' => [ 'required' , 'numeric' , 'digits:11' ] , 'username' => [ 'required' , 'string' , new RemoteUserRule ( ) ] , 'SMSData' => [ 'required' , 'array' ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .