Skip to content

Commit

Permalink
custom guard needs to live on register instead of boot
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Hernandes authored Jun 8, 2017
1 parent 6e135c4 commit e18855a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Auth/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class ServiceProvider extends AuthServiceProvider
protected $authManager = null;

/**
* Boot Guard.
* Register Guard.
*/
public function boot()
public function register()
{
// gets the auth factory instance and register on provider attribute.
$this->authManager = $this->app->make(AuthManager::class);
Expand Down Expand Up @@ -63,4 +63,4 @@ protected function getTokenManager()
{
return $this->app->make(TokenManager::class);
}
}
}

0 comments on commit e18855a

Please sign in to comment.