05/04
2017
Asanak Sms Sender Package
Installation:, (*2)
Run below statements on your terminal :, (*3)
STEP 1 :, (*4)
composer require "mhrezaei/asanak-sms":"1.0.0"
STEP 2 : Add provider
and facade
in config/app.php, (*5)
'providers' => [ ... Asanak\Sms\AsanakSmsProvider::class, // <-- add this line at the end of provider array ], 'aliases' => [ ... 'AsanakSms' => Asanak\Sms\Facade\AsanakSmsFacade::class, // <-- add this line at the end of aliases array ]
Step 3:, (*6)
php artisan vendor:publish --tag=AsanakSmsTag --force
Configuration file is placed in config/asanak-sms.php , open it and enter your Asanak webservice config, (*7)
How to use!:, (*8)
AsanakSms::send('mobile_number', 'massage_body');