Download the PHP package yaim/laravel-fcm-notification-channel without Composer
On this page you can find all versions of the php package yaim/laravel-fcm-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yaim/laravel-fcm-notification-channel
More information about yaim/laravel-fcm-notification-channel
Files in yaim/laravel-fcm-notification-channel
Package laravel-fcm-notification-channel
Short Description Firebase Cloud Messages Notification Driver
License MIT
Homepage https://github.com/enniel/laravel-fcm-notification-channel
Informations about the package laravel-fcm-notification-channel
FCM notification channel for Laravel 5.3
This package makes it easy to send notifications using Firebase Cloud Messaging (FCM) with Laravel 5.3. This package is based on brozot/laravel-fcm, so please read that documentation for more information.
Contents
- Installation
- Usage
- Available message types
- Available message methods
- Testing
- Credits
- Support
- License
Installation
You can install this package via composer:
Register the provider directly in your app configuration file config/app.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
Available message types:
FCMMessage
: Send notifications to device(s).FCMMessageTopic
: Send notifications to topic(s).FCMMessageGroup
: Send notifications to group(s).
In order for your notice to know who to send messages, you must add routeNotificationForFCM
method to your notification model.
Available message methods
data()
: Notification data.array
|LaravelFCM\Message\PayloadData
|LaravelFCM\Message\PayloadDataBuilder
options()
: Notification options.array
|LaravelFCM\Message\Options
|LaravelFCM\Message\OptionsBuilder
notification()
: Notification content.array
|LaravelFCM\Message\PayloadNotification
|LaravelFCM\Message\PayloadNotificationBuilder
Proxy methods. See brozot/laravel-fcm for more information about this methods.
setDryRun
setPriority
setTimeToLive
setCollapseKey
setDelayWhileIdle
setMutableContent
setContentAvailable
setRestrictedPackageName
isDryRun
getPriority
getTimeToLive
getCollapseKey
isDelayWhileIdle
isMutableContent
isContentAvailable
getRestrictedPackageName
setTag
setBody
setIcon
setTitle
setSound
setBadge
setColor
setChannelId
setClickAction
setBodyLocationKey
setBodyLocationArgs
setTitleLocationKey
setTitleLocationArgs
getTag
getBody
getIcon
getTitle
getSound
getBadge
getColor
getChannelId
getClickAction
getBodyLocationKey
getBodyLocationArgs
getTitleLocationKey
getTitleLocationArgs
Testing
Credits
- Evgeni Razumov
- All Contributors
Support
Having trouble? Open an issue!
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-fcm-notification-channel with dependencies
brozot/laravel-fcm Version ~1.2.5
illuminate/notifications Version ~5.3
illuminate/queue Version ~5.1
illuminate/support Version ~5.1