D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
mikyal.online
/
app
/
Listeners
/
Filename :
SendOrderSmsNotification.php
back
Copy
<?php namespace App\Listeners; use App\Events\SendOrderSms; use App\Services\OrderSmsNotificationBuilder; use Illuminate\Support\Facades\Log; class SendOrderSmsNotification { public function handle(SendOrderSms $event): void { try{ $orderSmsNotificationBuilderService = new OrderSmsNotificationBuilder($event->info['order_id'], $event->info['status']); $orderSmsNotificationBuilderService->send(); } catch(\Exception $e) { Log::info($e->getMessage()); } } }