Skip to content

Commit 081ee44

Browse files
authored
Merge pull request #52 from codificio/master
Debug option is now configurable.
2 parents 7a69b73 + 35df551 commit 081ee44

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/exponent-push-notifications.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*/
88

99
return [
10+
'debug' => env('EXPONENT_PUSH_NOTIFICATION_DEBUG', true),
11+
1012
'interests' => [
1113
'driver' => env('EXPONENT_PUSH_NOTIFICATION_INTERESTS_STORAGE_DRIVER', 'file'),
1214

src/ExpoChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function send($notifiable, Notification $notification)
5252
$this->expo->notify(
5353
$interest,
5454
$notification->toExpoPush($notifiable)->toArray(),
55-
true
55+
config('exponent-push-notifications.debug')
5656
);
5757
} catch (ExpoException $e) {
5858
$this->events->dispatch(

0 commit comments

Comments
 (0)