1. Go to this page and download the library: Download mlk9/ippanel-laravel 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/ */
mlk9 / ippanel-laravel example snippets
sh
php artisan vendor:publish --tag=ippanel-laravel
sh
class ExampleNotification extends Notification
{
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['sms'];
}
//for pattern sms
public function toSms($notifiable)
{
return [
'type' => 'patternMessage',
'code' => 'YOUR CODE PATTERN',//string
'values' => ['name'=>$notifiable->name],//array
'recipient'=> $notifiable->phone,//string
];
}
//for simple sms
// public function toSms($notifiable)
// {
// return [
// 'type' => 'message',
// 'message' => 'YOUR MESSAGE',
// 'recipient'=> [$notifiable->phone], // shoud be arrray
// ];
// }
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.