Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function laporandarurat(Request $request){
- $notificationBuilder = new PayloadNotificationBuilder('Darurat');
- $notificationBuilder->setBody('Hello world')
- ->setSound('default');
- $notification = $notificationBuilder->build();
- $topic = new Topics();
- $topic->topic('news');
- $topicResponse = FCM::sendToTopic($topic, null, $notification, null);
- if($topicResponse->isSuccess()){
- }else{
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement