PHPackages                             genealabs/laravel-tawk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. genealabs/laravel-tawk

ActiveLaravel-package[Utility &amp; Helpers](/categories/utility)

genealabs/laravel-tawk
======================

Integrate Tawk.to into yoru Laravel and Nova apps.

13.0.0(1mo ago)111.2kMITPHPPHP ^8.2CI failing

Since Aug 24Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/mikebronner/laravel-tawk)[ Packagist](https://packagist.org/packages/genealabs/laravel-tawk)[ GitHub Sponsors](https://github.com/mikebronner)[ RSS](/packages/genealabs-laravel-tawk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (6)Versions (13)Used By (0)

Tawk for Laravel
================

[](#tawk-for-laravel)

[![Tawk for Laravel masthead image.](https://repository-images.githubusercontent.com/204191162/32612b80-f346-11e9-8bff-dca042a4ae5d)](https://repository-images.githubusercontent.com/204191162/32612b80-f346-11e9-8bff-dca042a4ae5d)

Easily and quickly integrate Tawk.to LiveChat into your laravel app in under 5 minutes!

Features
--------

[](#features)

- all the default Tawk.to LiveChat features.
- automatic user identification (for logged-in users).
- secure chat API (for logged-in users).

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 8.0+

Supported Versions
------------------

[](#supported-versions)

PHPLaravel8.28.x – 13.x8.38.x – 13.x8.48.x – 13.x8.58.x – 13.xInstallation
------------

[](#installation)

```
composer require "genealabs/laravel-tawk:*"
```

Configuration
-------------

[](#configuration)

Refer to the Property Settings page in your Tawk.to dashboard for the required values. Add the following to your `.env` file:

```
TAWK_API_KEY=xxxxxxxxxxxxxxx
TAWK_SITE_ID=yyyyyyyyyyyyyyy

```

Implementation
--------------

[](#implementation)

### Laravel App

[](#laravel-app)

Add the following to your layout blade template immediately before the closing `` tag:

```
            @tawk
//
//
```

### Laravel Nova

[](#laravel-nova)

If you are using Laravel Nova as a dashboard for your users, first publish the layout blade template, then insert the blade directive immediate prior to the closing `` tag in `resources/views/vendor/nova/layout.blade.php`:

```
            @tawk
//
//
```

Troubleshooting
---------------

[](#troubleshooting)

### Blank page / Tawk widget not appearing

[](#blank-page--tawk-widget-not-appearing)

1. **Check your `.env` values:** Ensure `TAWK_SITE_ID` and `TAWK_API_KEY` are set correctly. You can find these in your Tawk.to dashboard under Property Settings.
2. **Clear config cache:** Run `php artisan config:clear` after updating `.env`.
3. **Check the HTML source:** View your page source and look for the Tawk.to script tag. If it's missing entirely, the `@tawk` directive may not be in your layout. If it shows a comment about missing `TAWK_SITE_ID`, update your `.env`.
4. **Check browser console:** Open the browser developer tools console for JavaScript errors.
5. **Verify the directive placement:** The `@tawk` directive must be placed immediately before the closing `` tag in your layout blade template.

### Console Capture

[](#console-capture)

To automatically send the visitor's browser console output (errors, warnings, logs) to Tawk.to when a chat starts, add the following to your `.env`:

```
TAWK_CAPTURE_CONSOLE=true

```

When enabled, the last 50 console entries are captured and sent as custom attributes when a visitor initiates a chat. This includes:

- Console errors, warnings, and logs
- Unhandled JavaScript errors
- Unhandled promise rejections

The data appears in the Tawk.to agent dashboard as custom visitor attributes.

### Screenshot Capture

[](#screenshot-capture)

To automatically take a screenshot of the page when a visitor starts a chat, add the following to your `.env`:

```
TAWK_CAPTURE_SCREENSHOT=true

```

When enabled, html2canvas (loaded from CDN) captures the visible page and sends it as a Tawk.to custom attribute. The screenshot appears in the agent dashboard as a base64 JPEG image.

**Note:** Screenshots are compressed (50% scale, 60% JPEG quality) to stay within Tawk.to's attribute size limits. Very large pages may exceed the limit and the screenshot will be skipped.

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance91

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~401 days

Recently: every ~575 days

Total

7

Last Release

45d ago

Major Versions

1.1.1 → 7.0.02020-04-12

7.0.0 → 8.0.02020-09-15

8.0.0 → 11.02024-11-11

11.0 → 13.0.02026-03-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/4374bfc5d8583aa8c25c5080f1fcfaf09027822f47724ba6b64abc564945c80a?d=identicon)[mikebronner](/maintainers/mikebronner)

---

Top Contributors

[![mikebronner](https://avatars.githubusercontent.com/u/1791050?v=4)](https://github.com/mikebronner "mikebronner (34 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/genealabs-laravel-tawk/health.svg)

```
[![Health](https://phpackages.com/badges/genealabs-laravel-tawk/health.svg)](https://phpackages.com/packages/genealabs-laravel-tawk)
```

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[cknow/laravel-money

Laravel Money

1.0k4.3M22](/packages/cknow-laravel-money)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
