validate property

String validate

Implementation

String get validate => """\$validator = ${text.toString()};

   if (\$validator->fails()) {
          return response()->json(['response_code' => 401, 'error' => \$validator->errors(), $customMessage], 401);
      } """;