PHP code example of csgt / notification-channel-conceptomovil

1. Go to this page and download the library: Download csgt/notification-channel-conceptomovil 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/ */

    

csgt / notification-channel-conceptomovil example snippets


// config/app.php
'providers' => [
    ...
    NotificationChannels\Conceptomovil\ConceptomovilProvider::class,
],

// config/services.php
...
'conceptomovil' => [
    'url'     => env('CONCEPTO_MOVIL_URL'),
    'token'   => env('CONCEPTO_MOVIL_TOKEN'),
    'apiKey'  => env('CONCEPTO_MOVIL_KEY'),
    'country' => env('CONCEPTO_MOVIL_COUNTRY'),
    'dial'    => env('CONCEPTO_MOVIL_DIAL'),
    'tag'     => env('CONCEPTO_MOVIL_TAG'),
],
...

use NotificationChannels\Conceptomovil\ConceptomovilChannel;
use NotificationChannels\Conceptomovil\ConceptomovilMessage;
use Illuminate\Notifications\Notification;

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

    public function toConceptomovil($notifiable)
    {
        return (new ConceptomovilMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}

public function routeNotificationForConceptomovil()
{
    return $this->mobile;
}