PHP code example of maveriks-echo / laravel-messenger-channel

1. Go to this page and download the library: Download maveriks-echo/laravel-messenger-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/ */

    

maveriks-echo / laravel-messenger-channel example snippets


   public function via($notifiable): array
    {
        return ['messenger'];
    }

   public function via($notifiable): array
    {
        return ['smart-sender'];
    }

    public function toMessenger($notifiable): SmartSender
    {
        return new HerokuApp(
            'Url',
            'Method', // post
            'ArrayOfParams',          
        );
    }