aboutsummaryrefslogtreecommitdiffhomepage
path: root/infrastructure/Auth/AuthServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/Auth/AuthServiceProvider.php')
-rw-r--r--infrastructure/Auth/AuthServiceProvider.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/infrastructure/Auth/AuthServiceProvider.php b/infrastructure/Auth/AuthServiceProvider.php
deleted file mode 100644
index 7f09b7d..0000000
--- a/infrastructure/Auth/AuthServiceProvider.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-namespace Infrastructure\Auth;
-
-use Carbon\Carbon;
-use Laravel\Passport\Passport;
-use Illuminate\Support\Facades\Gate;
-use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
-
-class AuthServiceProvider extends ServiceProvider
-{
- /**
- * The policy mappings for the application.
- *
- * @var array
- */
- protected $policies = [
- 'App\Model' => 'App\Policies\ModelPolicy',
- ];
-
- /**
- * Register any authentication / authorization services.
- *
- * @return void
- */
- public function boot()
- {
- $this->registerPolicies();
-
- Passport::routes(function ($router) {
- $router->forAccessTokens();
- // Uncomment for allowing personal access tokens
- // $router->forPersonalAccessTokens();
- $router->forTransientTokens();
- });
-
- Passport::tokensExpireIn(Carbon::now()->addYears(10));
-
- Passport::refreshTokensExpireIn(Carbon::now()->addDays(365));
- }
-} \ No newline at end of file