Skip to content

Commit e18855a

Browse files
author
Diego Hernandes
authored
custom guard needs to live on register instead of boot
1 parent 6e135c4 commit e18855a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Auth/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class ServiceProvider extends AuthServiceProvider
2020
protected $authManager = null;
2121

2222
/**
23-
* Boot Guard.
23+
* Register Guard.
2424
*/
25-
public function boot()
25+
public function register()
2626
{
2727
// gets the auth factory instance and register on provider attribute.
2828
$this->authManager = $this->app->make(AuthManager::class);
@@ -63,4 +63,4 @@ protected function getTokenManager()
6363
{
6464
return $this->app->make(TokenManager::class);
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)