migrate to gtea from bistbucket
This commit is contained in:
31
public/restaurant/app/Jobs/SendSmsJob.php
Normal file
31
public/restaurant/app/Jobs/SendSmsJob.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Modules\Academic\Models\SmsLog;
|
||||
|
||||
class SendSmsJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
// protected $smsLog;
|
||||
|
||||
// public function __construct(SmsLog $smsLog)
|
||||
// {
|
||||
// $this->smsLog = $smsLog;
|
||||
// }
|
||||
|
||||
// public function handle()
|
||||
// {
|
||||
// $response = sent_sms($this->smsLog?->receiver, $this->smsLog?->message);
|
||||
// if ($response) {
|
||||
// $this->smsLog->status = 1;
|
||||
// $this->smsLog->save();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user