Skip to content

Commit ef0d332

Browse files
authored
Merge pull request #25 from laravelcm/prepare-for-production
Prepare for production
2 parents 53bbd15 + d62f732 commit ef0d332

File tree

5 files changed

+1305
-85
lines changed

5 files changed

+1305
-85
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ MAIL_ENCRYPTION=null
3535
MAIL_FROM_ADDRESS=no-reply@laravel.cm
3636
MAIL_FROM_NAME="${APP_NAME}"
3737

38+
MAILGUN_DOMAIN=
39+
MAILGUN_SECRET=
40+
3841
AWS_ACCESS_KEY_ID=
3942
AWS_SECRET_ACCESS_KEY=
4043
AWS_DEFAULT_REGION=us-east-1
@@ -71,3 +74,5 @@ MIX_TORCHLIGHT_TOKEN="${TORCHLIGHT_TOKEN}"
7174
UNSPLASH_ACCESS_KEY=
7275
TELEGRAM_BOT_TOKEN=
7376
MEDIA_DISK=media
77+
SENTRY_LARAVEL_DSN=
78+
SENTRY_TRACES_SAMPLE_RATE=

app/Exceptions/Handler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ class Handler extends ExceptionHandler
3535
public function register()
3636
{
3737
$this->reportable(function (Throwable $e) {
38-
//
38+
if ($this->shouldReport($e) && app()->bound('sentry')) {
39+
app('sentry')->captureException($e);
40+
}
3941
});
4042
}
4143
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"livewire/livewire": "^2.5",
2929
"ph7jack/wireui": "^0.14.0",
3030
"ramsey/uuid": "^4.2",
31+
"sentry/sentry-laravel": "^2.10",
3132
"spatie/laravel-feed": "^4.0",
3233
"spatie/laravel-medialibrary-pro": "^1.0.0",
3334
"spatie/laravel-permission": "^5.1",

0 commit comments

Comments
 (0)