webelightdev / laravel-push-notification
Push Notifications using Laravel
Installs: 292
Dependents: 0
Suggesters: 0
Security: 0
Stars: 28
Watchers: 6
Forks: 10
Open Issues: 0
Requires
- php: ^7.0
This package is not auto-updated.
Last update: 2024-12-19 16:46:50 UTC
README
Push Notifications using Laravel
PushNotification::send(['deviceToken1', 'deviceToken2',..], 'Notification Message', 'Action Key');
- Param1 [Device Tokens] - Send Notification to single/mutiple devices.
- Param2 [Notification Message] - Notification Message that will display on mobile notification tray.
- Param3 [Action Key] - Action key is the helper to redirect user to any page in Mobile app on notificaiton touch.
Installation
To get the latest version of Laravel Push Notification, run following using composer
:
composer require webelightdev/laravel-push-notification dev-master
Or, you may manually update require block and run composer update
"require": {
"webelightdev/laravel-push-notification": "dev-master"
}
Once Laravel Push Notification is installed, You need to register the Service Provider in config/app.php
,
Add following in providers
list
Webelightdev\LaravelPushNotification\PushNotificationServiceProvider::class,
composer dump-autoload
will be required.
To publish the Config, Migration, Service Provider and Facades
php artisan vendor:publish
Finally, run migration to generate Notification Log table
php artisan migrate
Latest snapshot of Push Notification for one of our client using laravel-push-notification plugin
License
The MIT License (MIT). Please see License File for more information.