RevDock | Docs
Installation Guides

Laravel

Add RevDock to your Laravel application in under 2 minutes.

Works with Laravel 9+ and Blade templates.

Setup

Open your app layout

Find your main layout file, typically at resources/views/layouts/app.blade.php.

Add the script

Insert the RevDock script inside the <head> section:

<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />

  <script
    defer
    src="https://getrevdock.com/scripts/revdock.js"
    data-website-id="YOUR_WEBSITE_ID"
  ></script>

  @vite(['resources/css/app.css', 'resources/js/app.js'])
</head>

Deploy

Push your changes. RevDock will be active on your next deployment.

Using config values

For cleaner code, add to your .env:

REVDOCK_WEBSITE_ID=your_website_id

Add to config/services.php:

'revdock' => [
    'website_id' => env('REVDOCK_WEBSITE_ID'),
],

Then in your Blade template:

<script
  defer
  src="https://getrevdock.com/scripts/revdock.js"
  data-website-id="{{ config('services.revdock.website_id') }}"
></script>

Using config values makes it easy to use different website IDs for staging and production.

Livewire & Inertia

The setup is the same — add the script to your root layout. RevDock works seamlessly with Livewire and Inertia.js.

Verify it's working

  1. Deploy your changes
  2. Visit your live site
  3. Check the RevDock dashboard — widgets should appear within minutes

On this page