Postingan lainnya
Menggunakan api smsgateway.me
//file App.php
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Yugo\SMSGateway\Providers\SmsServiceProvider::class,
ijin bertanya para master sekalian, apakah ada yang tau cara menggunakan api dari smsgateway.me, jika ada yang tau bisa bantu saya untuk tutorialnya??
use Facades\Yugo\SMSGateway\Interfaces\SMS;
Route::get('sms/send', function (){
return SMS::send(['085274469017'], 'Hello, world!');
});
//file .ENV
SMS_VENDOR=smsgatewayme
SMSGATEWAYME_DEVICE=11650
SMSGATEWAYME_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZG1pbiIsImlhdCI6MTU4NjA2NTczNywiZXhwIjo0MTAyNDQ0ODAwLCJ1aWQiOjc3NjMyLCJyb2xlcyI6WyJST0xFX1VTRVIiXX0.k43SEbtdz37aS11po34HBGnYr0bc4Y7sldYRvOsZb_4
0