Skip to content

Instantly share code, notes, and snippets.

@mansha99
Created August 19, 2023 10:56
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/a6aff3cc1d4e12d06803b03860814ab8 to your computer and use it in GitHub Desktop.
Save mansha99/a6aff3cc1d4e12d06803b03860814ab8 to your computer and use it in GitHub Desktop.
<?php
namespace App\Services;
use App\Events\AddressChangeEvent;
use App\Models\Order;
class AddressChangeNotifService
{
public function sendNotification(Order $order)
{
AddressChangeEvent::dispatch($order);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment