Skip to content

creode-modules/laravel-hubspot-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel HubSpot Forms

A Laravel package that allows you to embed a HubSpot form into your Laravel application using a Blade component

Installation

composer require creode/laravel-hubspot-forms

Then, add the following script tag to your layout file. This is required for the HubSpot form to be rendered.

<script charset="utf-8" type="text/javascript" src="//js-eu1.hsforms.net/forms/embed/v2.js"></script>

Usage

Blade component:

<x-hubspot-form form-id="your-hubspot-form-id-here" portal-id="your-hubspot-form-id-here" />

The Region can be updated by passing a region parameter to the component. The default is eu1.

<x-hubspot-form form-id="your-hubspot-form-id-here" portal-id="your-hubspot-form-id-here" region="eu1" />