app/Providers/AuthServiceProvider.php
/**
     * Register any authentication / authorization services.
     *
     * @return void
     */
Register any authentication / authorization services.
@return void
Register any authentication / authorization services . @return void
public function boot()
    {
        $this->registerPolicies();
        Passport::routes();
        Passport::tokensExpireIn(Carbon::now()->addYears(20));
        Passport::refreshTokensExpireIn(Carbon::now()->addYears(20));
    }
public function boot ( ) { $ this -> registerPolicies ( ) ; Passport :: routes ( ) ; Passport :: tokensExpireIn ( Carbon :: now ( ) -> addYears ( 20 ) ) ; Passport :: refreshTokensExpireIn ( Carbon :: now ( ) -> addYears ( 20 ) ) ; }
Register any authentication / authorization services.
Register any authentication / authorization services .