From 39aa8530424310663c888f9e02224158961532e3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 Oct 2018 18:41:29 +0100 Subject: PHP is crap --- infrastructure/Auth/AuthServiceProvider.php | 41 ----------------------------- 1 file changed, 41 deletions(-) delete mode 100644 infrastructure/Auth/AuthServiceProvider.php (limited to 'infrastructure/Auth/AuthServiceProvider.php') 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 @@ - '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 -- cgit v1.2.3