mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$this->commands([
|
||||||
|
\Laravel\Passport\Console\InstallCommand::class,
|
||||||
|
\Laravel\Passport\Console\ClientCommand::class,
|
||||||
|
\Laravel\Passport\Console\KeysCommand::class,
|
||||||
|
]);
|
||||||
|
|
||||||
|
|
||||||
$this->registerPolicies();
|
$this->registerPolicies();
|
||||||
Passport::routes();
|
Passport::routes();
|
||||||
Passport::tokensExpireIn(Carbon::now()->addYears(20));
|
Passport::tokensExpireIn(Carbon::now()->addYears(20));
|
||||||
|
|
Loading…
Reference in a new issue