Add passport commands to boot() to allow us to call them via PHP

This commit is contained in:
snipe 2017-04-27 07:09:46 -07:00
parent 8ba19aa855
commit 841e3efe96

View file

@ -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));