mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Add passport commands to boot() to allow us to call them via PHP
This commit is contained in:
parent
8ba19aa855
commit
841e3efe96
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue