app/Http/Requests/Api/AuthenticationRequest.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 [
            'realname'      => 'required|string',
            'mobile'        => ['required', 'regex:' . getMobileCheckRegex()],
            'identity_card' => 'required|string',
            'hand_photo'    => 'required|string',
        ];
    }
public function rules ( ) { return [ 'realname' => 'required|string' , 'mobile' => [ 'required' , 'regex:' . getMobileCheckRegex ( ) ] , 'identity_card' => 'required|string' , 'hand_photo' => 'required|string' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//'email'         => 'sometimes|required|email',