- Add package to your
composer.json
composer require hasanalyazidi/laravel-sendables
- Migrate package tables or publish migrations first then migrate
php artisan migrate
php artisan vendor:publish --provider="HasanAlyazidi\Sendables\Providers\SendablesServiceProvider" --tag="config"
php artisan vendor:publish --provider="HasanAlyazidi\Sendables\Providers\SendablesServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="HasanAlyazidi\Sendables\Providers\SendablesServiceProvider" --tag="resources-lang-en"
php artisan vendor:publish --provider="HasanAlyazidi\Sendables\Providers\SendablesServiceProvider" --tag="resources-lang-ar"
php artisan vendor:publish --provider="HasanAlyazidi\Sendables\Providers\SendablesServiceProvider" --tag="resources-lang-all"
$sms = new SMSNotification('SMS Message', '966000000000');
$sms->send();
$otp = new OtpVerifier('966000000000');
$otp->send();
- WhatsApp:
Add a message template namedotp_code
, type (Authentication
) with your app supported languages.
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.