Swiftpack.co - Package - aizhar777/laravel_mobizon

Sms notifications channel for Laravel

This package makes it easy to send notifications using mobizon.kz with Laravel.


You can install the package via composer:

composer require aizhar777/laravel_mobizon

Publish the configs:

php artisan vendor:publish --provider="Aizhar777\Mobizon\MobizonServiceProvider"

Then you must install the service provider:

// config/app.php
'providers' => [

Install your Api key in the config:

// config/mobizon.php
return [
    'alphaname' => null,
    'secret' => 'Your secret API key',


You can use the channel in your via() method inside the notification:

use Illuminate\Notifications\Notification;
use Aizhar777\Mobizon\MobizonMessage;
use Aizhar777\Mobizon\MobizonChanel;

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

    public function toMobizon($notifiable)
        return MobizonMessage::create("Task #{$notifiable->id} is complete!");

In your notifiable model, make sure to include a routeNotificationForMobizon() method, which return the phone number.

public function routeNotificationForMobizon()
    return $this->phone;


Stars: 0
Help us keep the lights on


Used By

Total: 0


0.1.2 - Apr 29, 2018

0.1.1 - Nov 13, 2017

Fixed a typo in the file README.md

0.1 - Sep 19, 2017