PHPackages                             osp-pawan/pusherbyrepository - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. osp-pawan/pusherbyrepository

ActiveLibrary

osp-pawan/pusherbyrepository
============================

This will send notification using pusher via repository

1.0.1(5y ago)026↓100%MITPHP

Since Mar 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pawansonih/pusherByRepository)[ Packagist](https://packagist.org/packages/osp-pawan/pusherbyrepository)[ RSS](/packages/osp-pawan-pusherbyrepository/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Introduction
============

[](#introduction)

This package will help you to send notification using pusher via repository pattern code
----------------------------------------------------------------------------------------

[](#this-package-will-help-you-to-send-notification-using-pusher-via-repository-pattern-code)

Installation
============

[](#installation)

```
$ composer require osp-pawan/pusherbyrepository
```

#### Service Provider &amp; Facade (Optional on Laravel 5.5+)

[](#service-provider--facade-optional-on-laravel-55)

Register provider and facade on your `config/app.php` file.

```
'providers' => [
    ...,
    OspPawan\PusherByRepository\PusherByRepositoryServiceProvider::class,
    //Uncomment below line from your `config/app.php`
    App\Providers\BroadcastServiceProvider::class,
]
```

#### .env File changes

[](#env-file-changes)

When Composer is done, we will need to configure Laravel to use Pusher as its broadcast driver, to do this, open the `.env` file that is in the root directory of your Laravel installation. Update the values to correspond with the configuration below:

```
    BROADCAST_DRIVER=pusher

    // Get the credentials from your pusher dashboard
    PUSHER_APP_ID=XXXXX
    PUSHER_APP_ID=XXXXX
    PUSHER_APP_KEY=XXXXXXX
    PUSHER_APP_SECRET=XXXXXXX
```

Simple Example
==============

[](#simple-example)

Must use below constructor in order to use PusherRepository

```
