# Hibira Live Chat for Laravel

> Put the Hibira Live Chat widget on your Laravel site with one Blade component, and let signed-in users chat as themselves: their name and email reach your inbox, signed so nobody can pretend to be them.

Source: https://hibira.io/guides/laravel-live-chat

Put the Hibira Live Chat widget on your Laravel site with one Blade component, and let signed-in users chat as themselves: their name and email reach your inbox, signed so nobody can pretend to be them.

Package: hibira-io/laravel-live-chat

- <x-hibira-live-chat /> in your layout, or the InjectLiveChat middleware to add it to every page without touching your views.
- Signed-in users are identified with an HMAC of their ID, so the inbox shows who they are and their conversations follow them between devices.
- Your own buttons and #hibira-live-chat links open the chat; hide it per page or for staff with a gate, and it stays open across wire:navigate.

## 1. Install

```shell
composer require hibira-io/laravel-live-chat
php artisan hibira:live-chat --workspace=ws_YOUR_WORKSPACE
```

## 2. Use it

```html
{{-- resources/views/layouts/app.blade.php, before </body> --}}
<x-hibira-live-chat />

<x-hibira-live-chat-open topic="sales">Talk to sales</x-hibira-live-chat-open>
```

## Before you start

- Find the workspace ID in the Live Chat console, and create an identity secret under Settings, Verified visitors. The identity secret stays on your server.
- php artisan hibira:live-chat --check confirms the workspace exists and allows your APP_URL.

- [Packagist](https://packagist.org/packages/hibira-io/laravel-live-chat)
- [GitHub](https://github.com/hibira-io/laravel-live-chat)
