Laravel
To install Suppa in your Laravel application:
- Open your main layout file, typically located at
resources/views/layouts/app.blade.php
. - Add the Suppa script to the
<head>
section:
<!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', 'Laravel') }}</title>
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<!-- Suppa Integration -->
<script
src="https://app.suppa.ai/integration/script.js"
data-api-key="{{ config('services.suppa.api_key') }}">
</script>
</head>
<body>
@yield('content')
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
</body>
</html>