--- title: "Laravel" description: "Add Pulse analytics to your Laravel app. Blade template integration for all Laravel versions." category: "backend" brandColor: "#FF2D20" officialUrl: "https://laravel.com/docs" relatedIds: ["django", "rails", "wordpress"] date: "2026-03-28" --- Add the Pulse script to your Blade layout template with a production guard. --- ## Add to your Blade layout Use Laravel's `@production` directive to only load the script in production. ```php filename="resources/views/layouts/app.blade.php"
@production @endproduction