This repository was archived by the owner on Feb 17, 2023. It is now read-only.
Usage/Examples
Now, you can use trait to send SMS or OTP messages to a user
Add the Messageable trait to your model.
class User extends Model {
use Messageable;
.
.
.
}
Now you can use it like this
$user = User::find(1);
// Sending OSM
$user->sendMessage(string $message);
// Sending OTP
$user->sendOtp(string $otp);