Created
August 19, 2023 10:58
-
-
Save mansha99/d2ee8bc52fe5f910bd8b04739c7b4c1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Listeners; | |
use App\Events\AddressChangeEvent; | |
use Illuminate\Support\Facades\Log; | |
class AddressChangeListenerForLogistics | |
{ | |
public function __construct() | |
{ | |
} | |
public function handle(AddressChangeEvent $event): void | |
{ | |
//Real world: Invoke Provider's API | |
Log::debug('Inside AddressChangeListenerForLogistics :' . $event->longMessage); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment