- Install the composer package by executing
composer require randika-srimal/hubspot-card
- Open project terminal and execute
php artisan hubspot-card:install
This will add the required routes, controllers and resources to your project.
- HubSpot Card data get route is
/hubspot-card/data
. Card view will be available at/hubspot-card
. You may change these if required.
Below .env properties can be used to extend HubSpot Card functionality.
HUBSPOT_CARD_JWT_SECRET
: Setting this will add JWT security to card view URL.HUBSPOT_CARD_TOKEN_ACTIVE_MINUTES
: The JWT will be expire after the minutes you set here. Default is 30 minutes.HUBSPOT_CLIENT_SECRET
: Setting this will enable HubSpot request verification.
HUBSPOT_CARD_JWT_SECRET=your_secret_key
HUBSPOT_CARD_TOKEN_ACTIVE_MINUTES=30
HUBSPOT_CLIENT_SECRET=your_client_secret