We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b24d4 commit c3a90dcCopy full SHA for c3a90dc
src/ExpoPushNotificationsServiceProvider.php
@@ -16,7 +16,7 @@ class ExpoPushNotificationsServiceProvider extends ServiceProvider
16
*
17
* @return void
18
*/
19
- public function boot()
+ public function boot(\Illuminate\Routing\Router $router)
20
{
21
$this->setupConfig();
22
@@ -29,9 +29,7 @@ public function boot()
29
->give(function () use ($repository) {
30
return new Expo(new ExpoRegistrar($repository));
31
});
32
-
33
- $router = $this->app->make(Router::class);
34
- // It's also possible to add a middleware group
+
35
$router->middlewareGroup('expo.middleware', config("exponent-push-notifications")["middleware"]);
36
37
$this->loadRoutesFrom(__DIR__.'/Http/routes.php');
0 commit comments