Lob.com notifications channel for Laravel 5.3

1.2.0 2020-03-07 00:35 UTC

This package is auto-updated.

Last update: 2024-04-07 08:51:27 UTC


Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Code Coverage Total Downloads

This package makes it easy to send notifications using Lob.com with Laravel 5.5, 6.x and 7.x



You can install the package via composer:

composer require laravel-notification-channels/lob

You must install the service provider:

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

Setting up lob

  • Register a new account on Lob.com
  • Check for you API keys
  • Finally add your API key to your config/services.php
// config/services.php
'lob' => [
    'api_key' => env('LOB_API_KEY'),


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

use NotificationChannels\Lob\LobChannel;
use NotificationChannels\Lob\LobPostcard;
use NotificationChannels\Lob\LobAddress;
use Illuminate\Notifications\Notification;

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

    public function toLobPostcard($notifiable)
        return LobPostcard::create()
                LobAddress::create('300 BOYLSTON AVE E')
                    ->name('John Smith')
            ->message('Wishing you a wonderful weekend!');

Available Postcard methods

  • fromAddress() Address of the sender.
  • toAddress() Address of the receiver.
  • country() Set the country. US is default.
  • city() required if country is US.
  • state() required if country is US.
  • zip() required if country is US.
  • front() A 4.25"x6.25" or 6.25"x11.25" image to use as the front of the postcard.
  • message() The message at the back of the card.


Please see CHANGELOG for more information what has changed recently.


$ composer test


If you discover any security related issues, please email themsaid@gmail.com instead of using the issue tracker.


Please see CONTRIBUTING for details.



The MIT License (MIT). Please see License File for more information.