PHP code example of laravel-notification-channels / wunderlist

1. Go to this page and download the library: Download laravel-notification-channels/wunderlist 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/ */

    

laravel-notification-channels / wunderlist example snippets


// config/services.php
...
'wunderlist' => [
    'key' => env('WUNDERLIST_API_KEY'),
],
...

public function routeNotificationForWunderlist()
{
    return [
        'token' => 'NotifiableAccessToken',
        'list_id' => 12345,
    ];
}
 php
use NotificationChannels\Wunderlist\WunderlistChannel;
use NotificationChannels\Wunderlist\WunderlistMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [WunderlistChannel::class];
    }

    public function toWunderlist($notifiable)
    {
        return WunderlistMessage::create('Another channel bites the dust')
            ->starred()
            ->due('tomorrow');
    }
}