PHP code example of bluebird-signal / bluebird-signal-laravel-channel
1. Go to this page and download the library: Download bluebird-signal/bluebird-signal-laravel-channel 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/ */
bluebird-signal / bluebird-signal-laravel-channel example snippets
'provider' => [
...
BlueBirdSignal\BlueBirdSignalChannel\BlueBirdSignalServiceProvider::class
];
public function via($notifiable)
{
return [BlueBirdSignalChannel::class];
}
public function toBlueBirdSignal($notifiable): BlueBirdSignalMessage
{
return (new BlueBirdSignalMessage())
->setMessageKey('<message_key>')
->setSubject('Hello {{$full_name}}')
->setParameters([
'full_name' => 'John Doe',
'message' => 'Welcome our platform',
]);
}
composer log
php artisan vendor:publish --provider="BlueBirdSignal\BlueBirdSignalChannel\BlueBirdSignalServiceProvider" --tag=bluebird-signal