From 841e3efe962c17403c4dd1d45e8af66168d7f144 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 27 Apr 2017 07:09:46 -0700 Subject: [PATCH] Add passport commands to boot() to allow us to call them via PHP --- app/Providers/AuthServiceProvider.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index 65e4c9cdc3..de9f618be2 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -42,6 +42,14 @@ class AuthServiceProvider extends ServiceProvider */ public function boot() { + + $this->commands([ + \Laravel\Passport\Console\InstallCommand::class, + \Laravel\Passport\Console\ClientCommand::class, + \Laravel\Passport\Console\KeysCommand::class, + ]); + + $this->registerPolicies(); Passport::routes(); Passport::tokensExpireIn(Carbon::now()->addYears(20));