Skip to content

Instantly share code, notes, and snippets.

@mansha99
Created August 19, 2023 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mansha99/d2ee8bc52fe5f910bd8b04739c7b4c1e to your computer and use it in GitHub Desktop.
Save mansha99/d2ee8bc52fe5f910bd8b04739c7b4c1e to your computer and use it in GitHub Desktop.
<?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