Install Piqo on Laravel

Paste the snippet into your Blade master layout.

  1. Open your master layout — typically resources/views/layouts/app.blade.php.
  2. Add the script inside the <head> block.
  3. Clear the view cache: php artisan view:clear.
{{-- resources/views/layouts/app.blade.php --}}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{{ config('app.name') }}</title>
    <script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>
</head>
<body>
    @yield('content')
</body>
</html>