Skip to main content

Step 1: Create Blade Template

Add container element in your Blade view:

Step 2: Add JavaScript Initialization

Create a JavaScript file in your resources folder:

Choose what data to sync

An entity is a type of data, such as people, notes, or tasks. People sync automatically where supported. The examples below enable optional notes and tasks with entitiesToSync; choose the types your app needs. Alternatively, omit this prop to use the defaults you choose in dashboard Settings. An explicit selection in code takes precedence over those defaults. This configures new connections. For other types or accounts that are already connected, see Choose what data to sync.

Step 3: Add Laravel Routes

Add routes to your web.php file:

Step 4: Create Controller

Generate a controller and implement token generation:

Step 5 (Optional): Handle Credential Events

Update the JavaScript to handle events:

Step 6: Config Services

Add to config/services.php:

Step 7: Update CSP

Create middleware or add headers in App\Http\Middleware\TrustProxies.php: