⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.14
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
app
/
Jobs
/
Notifications
/
View File Name :
OtpNotification.php
<?php namespace App\Jobs\Notifications; class OtpNotification extends BaseNotification { /** * The mobile number. * * @var string */ protected $mobile; /** * The otp. * * @var string */ protected $otp; /** * The message. * * @var string */ protected $message; /** * Create a new job instance. * * @param string $mobile * @param string $otp */ public function __construct($mobile, $otp, $message) { $this->mobile = $mobile; $this->otp = $otp; $this->message = $message; } /** * Execute the job. * * @return void */ public function handle() { $this->sendOtpSms(); } /** * Send the otp sms. */ protected function sendOtpSms() { $to = $this->mobile; // $message = "Your OTP is {$this->otp}"; // @TODO change this // @TODO implement send sms // Log the sms sent. \Log::info("Sent OTP Sms - with Mb: {$to}, Msg: {$this->message}"); } }