Skip to content

Commit

Permalink
Aliasing \Illuminate\Contracts\Auth\Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Juhlin committed Jan 26, 2021
1 parent faf80e5 commit 5a89629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/auth/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
return new Illuminate\Auth\AuthManager($app);
});

$container->alias('auth', \Illuminate\Contracts\Auth\Factory::class);

$container->singleton('auth.driver', function ($app) {
return $app['auth']->guard();
});
Expand Down

0 comments on commit 5a89629

Please sign in to comment.