Skip to content

Instantly share code, notes, and snippets.


Robert Rimoczi pyr0hu

  • Hungary
View GitHub Profile
JacobBennett / ReadMe.MD
Last active Oct 3, 2019
Loading Laravel Sentry only for production
View ReadMe.MD

Loading Laravel Sentry package only for production

In the case that you don't want development errors making their way to Sentry for error tracking, you can use the code below to ensure that Sentry will only record exceptions when in production.

First, instead of loading the SentryLaravelServiceProvider in the config/app.php providers array, we will load it in our App/Providers/AppServiceProvider.php. This allows us to check the environment before loading the appropriate service providers.

Seconly, in our App/Exceptions/Handler.php we again check for the production environment before trying to capture the exception using Sentry. This second step prevents Sentry from trying to catch an exception when it isn't bound in the container.

MAKIO135 / index.html
Last active Aug 22, 2019
Using canvas as ThreeJS texture
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>JS Bin</title>
<body style="background:#fff;">
<script src=""></script>
<canvas id="canvas"></canvas>
<script id="jsbin-javascript">
You can’t perform that action at this time.