1. Go to this page and download the library: Download owenoj/laravel-bigmsgbox 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/ */
owenoj / laravel-bigmsgbox example snippets
use Owenoj\LaravelBigmsgbox\BigmsgboxChannel;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [BigmsgboxChannel::class];
}
public function toBigmsgbox($notifiable)
{
return "Your account was approved!";//your message
}
}
namespace App\Http\Controllers;
use Owenoj\LaravelBigmsgbox\Bigmsgbox;
use Illuminate\Notifications\Notification;
class AccountController extends Controller
{
public function sendsms()
{
$message = "Your account was approved!";
$to = '2331234567890';
return Bigmsgbox::send($to,$message);
}
}
public function routeNotificationForBigmsgbox()
{
return '2331234567890';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.