@@ -48,6 +48,9 @@ |
||
48 | 48 | return stream_context_create($streamOptions); |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $data |
|
53 | + */ |
|
51 | 54 | public function logResponse($data, $deviceToken, $message, $action) |
52 | 55 | { |
53 | 56 | $response = json_decode($data); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('notification_logs', function (Blueprint $table) { |
|
16 | + Schema::create('notification_logs', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
19 | 19 | $table->longtext('device_token')->nullable(); |
@@ -29,11 +29,11 @@ |
||
29 | 29 | public function register() |
30 | 30 | { |
31 | 31 | // Push Notification Service |
32 | - $this->app->bind('push-notification', function () { |
|
32 | + $this->app->bind('push-notification', function() { |
|
33 | 33 | return new PushNotificationClass(); |
34 | 34 | }); |
35 | 35 | // Log Notification Service |
36 | - $this->app->bind('log-notification', function () { |
|
36 | + $this->app->bind('log-notification', function() { |
|
37 | 37 | return new LogNotificationClass(); |
38 | 38 | }); |
39 | 39 | } |