{"repo":"laravel-notification-channels/onesignal","free":true,"listed":false,"github":"https://github.com/laravel-notification-channels/onesignal","clone":"git clone https://github.com/laravel-notification-channels/onesignal.git","description":"OneSignal notifications channel for Laravel","language":"PHP","stars":295,"topics":["laravel","onesignal","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"OneSignal notifications channel for Laravel 5.3+ This package makes it easy to send OneSignal notifications with Laravel 5.3+. Contents - Installation - Setting up your OneSignal account - Usage - Available Message methods - Button usage - WebButton usage - Changelog - Testing - Security - Contributing - Credits - License Installation You can install the package via composer: If you're installing the package in Laravel 5.4 or lower, you must import the service provider: Setting up your OneSignal account Add your OneSignal App ID and REST API Key to your config/services.php : Usage Now you can use the channel in your via() method inside the notification: In order to let your Notification know which OneSignal user(s) you are targeting, add the routeNotificationForOneSignal method to your Notifiable model. You can either return a single player-id, or if you want to notify multiple player IDs just return an array containing all IDs. If you want to send the notification based on the OneSignal \"syncHashedEmail\" feature just return an array with the index \"email\". It isn't possible to use multiple E-Mails on one filter because of a limitation of the OneSignal API. If you want to send the notification based on the OneSignal \"Tags\" feature just return an array with the index \"tags\". If you want to send the notification based on an external user id you set using the setExternalUserId feature. This makes it really easy to target users based on their Laravel User Ids. All available metho","default_branch":null,"files":null,"tree":[],"storefront":"/r/laravel-notification-channels","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laravel-notification-channels/onesignal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}