# Laravel Sybase Notification Channel


This package was not maintenance.

Star Total Downloads Build Status Latest Stable Version

# Introduction

Sybase 365 notification channel with Laravel.

# Requirement

Version branch
5.8 ~ 8.x 1.x

# Installation

$ composer require yish/sybase-notification-channel

# Usage

# Creating notification:

$ php artisan make:notification SendMessage

# Notify the service and send request

# Basic

Notification::route('sybase', $phone)->notify(new \App\Notifications\SendMessage);

Or you can construct the properties:

Notification::route('sybase', $phone)
->notify(new \App\Notifications\SendMessage(
    "Hi, here is yours",
    "this is content."

Next, navigate to App\Notifications\SendMessage.php, set driver:

use Yish\Notifications\Messages\SybaseMessage;
class SendMessage extends Notification
    use Queueable;

    public $subject;

    public $content;

    public function __construct($subject, $content)
        $this->subject = $subject;
        $this->content = $content;

    public function via($notifiable)
        return ['sybase'];
    public function toSybase($notifiable)
        return (new SybaseMessage)

Finally, you must be set service account and password, add a few configuration options to your config/services.php

'sybase' => [
    'account' => env('SYBASE_ACCOUNT'),
    'password' => env('SYBASE_PASSWORD'),
    'endpoint' => env('SYBASE_ENDPOINT'),

# Advanced

In some cases, you want to customize the recipient or automatically sending:


namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Guest extends Authenticatable
    use Notifiable; 
    public function routeNotificationForSybase($notification)
        return $this->mobile;

Finally, you can use:

$guest->notify(new SendMessage('Hello', 'world'));
Last Updated: 2/15/2021, 4:46:13 PM