CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/app/Http/Controllers/
Upload File :
Current File : /var/www/hrms.uiet.co.in/app/Http/Controllers/OTPGenerateController.php

<?php

namespace App\Http\Controllers;

use App\Http\Requests\StoreOTPGenerateRequest;
use App\Http\Requests\UpdateOTPGenerateRequest;
use App\Models\OTPGenerate;

class OTPGenerateController extends Controller
{
    public function send_sms(Request $request){
        $recipients=$request->recipients;
        $templetid=$request->templetid;

        if($recipients && $templetid){
            $client = new \GuzzleHttp\Client();
            $response = $client->request('POST', 'https://control.msg91.com/api/v5/flow/', [
                //'body' => '{"template_id":"65c75a87d6fc055fb71dc572","short_url":"1","recipients":[{"mobiles":"918895591305","var":"111111"}]}',
                'body' => '{"template_id":"'.$templetid.'","short_url":"1","recipients":'.json_encode($recipients).'}',
                'headers' => [
                    'accept' => 'application/json',
                    'authkey' => env('SMS_AUTH_KEY'),
                    'content-type' => 'application/json',
                ],
            ]);
            if($response->getBody()){
                return $response->getBody();
            }
        }

    }
}
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY