Lara Bug

We also offer the ability to record JavaScript errors.

Make sure to have the original LaraBug client installed before you continue.

Adding JavaScript error logging is fairly easy. Inside your master layout file add this inside your <head></head>, but make sure it is before any JavaScript is imported/run.

For example if you have an app.blade.php file that is getting extended, make sure to add the code below in that file so it is present in each view/route.

@larabugJavaScriptClient

Additionally you may also include it traditionally.

@include('larabug::larabug-js-client')