Download the PHP package codificio/laravel-exponent-push-notifications without Composer
On this page you can find all versions of the php package codificio/laravel-exponent-push-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codificio/laravel-exponent-push-notifications
More information about codificio/laravel-exponent-push-notifications
Files in codificio/laravel-exponent-push-notifications
Package laravel-exponent-push-notifications
Short Description Exponent push notifications driver for laravel
License MIT
Homepage https://github.com/alymosul/laravel-exponent-push-notifications
Informations about the package laravel-exponent-push-notifications
Exponent push notifications channel for Laravel
Contents
- Installation
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
If you are using Laravel 5.5 or higher this package will automatically register itself using Package Discovery. For older versions of Laravel you must install the service provider manually:
Before publish exponent notification migration you must add in .env file:
You can publish the migration with:
After publishing the migration you can create the exponent_push_notification_interests
table by running the migrations:
You can optionally publish the config file with:
This is the contents of the published config file:
Usage
Available Message methods
A list of all available options
title('')
: Accepts a string value for the title.body('')
: Accepts a string value for the body.enableSound()
: Enables the notification sound.disableSound()
: Mutes the notification sound.badge(1)
: Accepts an integer value for the badge.ttl(60)
: Accepts an integer value for the time to live.jsonData('')
: Accepts a json string or an array for additional.channelID('')
: Accepts a string to set the channelId of the notification for Android devices.
Managing Recipients
This package registers two endpoints that handle the subscription of recipients, the endpoints are defined in src/Http/routes.php file, used by ExpoController and all loaded through the package service provider.
Routing a message
By default the exponent "interest" messages will be sent to will be defined using the {notifiable}.{id} convention, for example App.User.1
, however you can change this behaviour by including a routeNotificationForExpoPushNotifications()
in the notifiable class method that returns the interest name.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Aly Suleiman
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-exponent-push-notifications with dependencies
alymosul/exponent-server-sdk-php Version 1.1.*
laravel/framework Version ^5.6 || ^6.0