You can use the @production Blade directive to load specific scripts only in production mode

You can use the @production Blade directive to load specific scripts only in production mode

The @.production blade directive makes it super easy to load e.g. Google Analytics or other stuff when your Laravel app is in production mode

We're writing a book, you can get it for free here.