Nexora

Laravel & PHP

Integrate the Nexora chat widget into your Laravel application using the embed script or the server-side REST API.

6 steps

The fastest approach. Add the Nexora widget script to your main Blade layout file. Place it before the closing </body> tag or in a scripts stack. The widget auto-detects the API URL from the script source.

{{-- resources/views/layouts/app.blade.php --}}
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ config('app.name') }}</title>
    @vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body>
    {{ $slot }}

    {{-- Nexora Chat Widget --}}
    <script
      src="{{ config('services.nexora.api_url') }}/widget.js"
      data-agent-id="{{ config('services.nexora.agent_id') }}"
      async>
    </script>
</body>
</html>

Need help with your integration? Contact our team for assistance.