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(function ($router) {
		    $router->forAccessTokens();
		    $router->forPersonalAccessTokens();
		    $router->forTransientTokens();
	    });
	    Passport::tokensExpireIn(Carbon::now()->addMinutes(10000)); 
	    Passport::refreshTokensExpireIn(Carbon::now()->addDays(10));
    }
public function boot ( ) { $ this -> registerPolicies ( ) ; Passport :: routes ( function ( $ router ) { $ router -> forAccessTokens ( ) ; $ router -> forPersonalAccessTokens ( ) ; $ router -> forTransientTokens ( ) ; } ) ; Passport :: tokensExpireIn ( Carbon :: now ( ) -> addMinutes ( 10000 ) ) ; Passport :: refreshTokensExpireIn ( Carbon :: now ( ) -> addDays ( 10 ) ) ; }
Register any authentication / authorization services.
Register any authentication / authorization services .
// TODO: only for debug //