Skip to content

Commit

Permalink
Usage documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Kasymov committed Jul 30, 2018
1 parent eb1df0b commit 20c6a21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ To send a message you will require an account with a provider using the Transmit

Without facade:

$sms = new \Abreeden\TransmitsmsApi\TransmitsmsApi("API_KEY", "SECRET");
$result = $sms->sendSms("Message goes here", "Destination Number", "From");
use Abreeden\TransmitsmsApi\TransmitsmsApi;

// Inject into action
public function index(Request $request, TransmitsmsApi $sms) {
$result = $sms->sendSms("Message goes here", "Destination Number");
}

With facade:

Expand Down

0 comments on commit 20c6a21

Please sign in to comment.