Skip to content

Instantly share code, notes, and snippets.

public function forward(Request $request)
{
$waniapptoken = $request->get('waniapptoken');
if (!$waniapptoken) {
abort(422, 'No Token received');
}
list($providerId, $waniapptokenCipher) = explode('|', $waniapptoken);
public function start(Request $request)
{
$request->validate([
'phone' => 'required',
'password' => 'required',
'ap_mac_id' => 'required',
'device_mac_id' => 'required'
]);
$user = User::query()->where('phone', '9003300303')->first();
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:charcode/ascii.dart';
class PaymentTerminalService {
static var ascii = AsciiCodec();
String ip = '127.0.0.1';
int port = 4567;
<?php
namespace App\Services;
use Illuminate\Support\Facades\Log;
use Twilio\Rest\Client;
class SmsService
{
import 'package:dio/dio.dart';
Future<dynamic> dioPostFormData(
String url, {
Map<String, String> headers,
Map<String, dynamic> body,
String method = 'POST',
Map<String, Uint8List> files,
}) async {
@JsonSerializable(explicitToJson: true)
class Outlet {
int id;
String name;
String code;
String address;
@JsonKey(name: 'mobile_logo')
String logo;
@JsonKey(name: 'company_id')
//
// DetailViewController.swift
// SDKSampleAppSwift
//
// Created by Muhammad Syafiq bin Mastor on 07/03/2019.
// Copyright © 2019 iPay88. All rights reserved.
//
import UIKit
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, PaymentResultDelegate,WKNavigationDelegate {
var flutterResult: FlutterResult?
override func application(
_ application: UIApplication,
import 'dart:io';
Socket? socket;
void main() {
Socket.connect("localhost", 4567).then((Socket sock) {
socket = sock;
if (socket == null) {
throw Exception("Invalid Socket");
}
cc -I/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include bcrypt_port.c bcrypt.o blowfish.o -L/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/lib -lpthread -o ../priv/bcrypt
bcrypt_port.c:105:14: warning: 'erl_format' is deprecated [-Wdeprecated-declarations]
result = erl_format("{~i, ~w, ~s}", cmd, pid, res);
^
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/erl_interface.h:407:32: note: 'erl_format' has been explicitly marked deprecated
here
ETERM *erl_format(char*, ... ) EI_DEPRECATED_ATTR;
^
/usr/local/Cellar/erlang/22.3.3/lib/erlang/lib/erl_interface-3.13.2/include/ei.h:64:43: note: expanded from macro 'EI_DEPRECATED_ATTR'
#define EI_DEPRECATED_ATTR __attribute__((EI_DEPRECATED_ATTR_NAME))