Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response = Http::withHeaders([
- 'Accept' => 'application/json',
- 'Accept-encoding' => 'gzip, deflate',
- 'Content-Type' => 'application/json',
- ])->post('https://exp.host/--/api/v2/push/send', [
- json_encode([
- 'to' => $user->notification_token,
- 'sound' => 'default',
- 'title' => $title,
- 'body' => $message,
- 'data' => json_encode(['status' => $status]),
- ]),
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement