Created
August 19, 2023 10:57
-
-
Save mansha99/624ea5d5e005184422d983bffab4da94 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\Events; | |
use App\Models\Order; | |
use Illuminate\Foundation\Events\Dispatchable; | |
class AddressChangeEvent | |
{ | |
use Dispatchable; | |
public $shortMessage = ''; | |
public $longMessage = ''; | |
public function __construct( | |
public Order $order | |
) { | |
//Get Order from Database | |
//Get deliveryAddress from Order | |
//Compose a Short Message for SMS and Long SMS for others | |
$this->shortMessage = " This is Short Message for change in Delivery Address"; | |
$this->longMessage = " This is a Long Long Message for change in Delivery Address"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment