store sms in db
Closed this issue · 4 comments
vahidalvandi commented
hi
thank you for this good package . i need event after send sms then store sms in db .
tzsk commented
That sounds like a responsibility on the Application Code rather than a Package. You can can store the message that you are sending right from you are sending it.
$sms = sms()->send("this message")->to(['Number 1', 'Number 2'])->dispatch();
// Now you can dispatch whatever event you like.
event(new MyCustomEvent($sms));
vahidalvandi commented
ok . but is better you add fire event after send sms internally . this way is easy
tzsk commented
@vahidalvandi You do realize this is not just a Laravel Specific package. One can also use this package if they are not using Laravel as well.
vahidalvandi commented
@tzsk i will send pull request