PHP code example of kwenziwa / filament-sms-sender

1. Go to this page and download the library: Download kwenziwa/filament-sms-sender library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kwenziwa / filament-sms-sender example snippets


   public function up()
   {
       Schema::table('users', function (Blueprint $table) {
           $table->string('phone_number')->nullable();
       });
   }
   

   use Kwenziwa\FilamentSmsSender\Pages\SendSms;

   public function boot()
   {
       Filament::registerPages([
           SendSms::class,
       ]);
   }
   

return [
    'table_name' => env('SMS_SENDER_TABLE_NAME', 'users'),
    'phone_column' => env('SMS_SENDER_PHONE_COLUMN', 'phone_number'),
    'api_key' => env('VONAGE_API_KEY'),
    'api_secret' => env('VONAGE_API_SECRET'),
];
bash
   php artisan vendor:publish --provider="Kwenziwa\FilamentSmsSender\Providers\SmsSenderServiceProvider" --tag=config
   
bash
   php artisan migrate