PHPackages                             yakoffka/laravel-notification-channels-ru-store - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. yakoffka/laravel-notification-channels-ru-store

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

yakoffka/laravel-notification-channels-ru-store
===============================================

RuStore push notifications Driver for Laravel

1.0.1(1y ago)1196↓50%MITPHPPHP &gt;=8.1CI passing

Since May 6Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/yakoffka/laravel-notification-channels-ru-store)[ Packagist](https://packagist.org/packages/yakoffka/laravel-notification-channels-ru-store)[ Docs](https://github.com/yakoffka/laravel-notification-channels-ru-store)[ RSS](/packages/yakoffka-laravel-notification-channels-ru-store/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (6)Used By (0)

Please see [this repo](https://github.com/laravel-notification-channels/channels) for instructions on how to submit a channel proposal.

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package makes it easy to send notifications using \[RuStore\](link to service) with Laravel 10.x.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Setting up the RuStore service](#setting-up-the-RuStore-service)
- [Usage](#usage)
- [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

Установите пакет с помощью команды:

```
  composer require yakoffka/laravel-notification-channels-ru-store
```

Затем опубликуйте конфигурационный файл:

```
  php artisan vendor:publish --provider="NotificationChannels\RuStore\RuStoreServiceProvider"
```

и обновите ваш .env, указав там значения, полученные в [RuStore консоли](https://console.rustore.ru/waiting)

### Setting up the RuStore service

[](#setting-up-the-rustore-service)

Optionally include a few steps how users can set up the service.

Usage
-----

[](#usage)

В классе, использующим трейт Notifiable (например User), необходимо реализовать метод, возвращающий массив токенов уведомляемого пользователя:

```
    /**
     * Получение массива ru-store пуш-токенов, полученных пользователем.
     * Используется пакетом laravel-notification-channels/rustore
     *
     * @return array
     */
    public function routeNotificationForRuStore(): array
    {
        return $this->ru_store_tokens;
    }
```

Затем создать класс уведомления, в методе via() которого указать канал отправки RuStoreChannel и добавить метод toRuStore():

```
