Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Adding Trait functionality

Latest
Compare
Choose a tag to compare
@khalidsheet khalidsheet released this 09 Jun 18:44
· 1 commit to main since this release

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);