@@ -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 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | 'method' => 'POST', |
43 | 43 | 'header' => "Authorization: key={$this->authKey}\r\n"."Content-Type: application/json\r\n", |
44 | 44 | 'content' => json_encode($postData), |
45 | - ], |
|
45 | + ], |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | return stream_context_create($streamOptions); |