From 0b6d2c598258df008f4cd74b233548d5055f48d1 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Thu, 1 Oct 2020 11:49:00 +0200 Subject: [PATCH] feat: Simplify Laravel onboarding --- src/platforms/php/guides/laravel/index.mdx | 8 +++----- src/wizard/php/laravel.md | 10 +++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/platforms/php/guides/laravel/index.mdx b/src/platforms/php/guides/laravel/index.mdx index d904bac72dc5b3..1bf09c3e471a46 100644 --- a/src/platforms/php/guides/laravel/index.mdx +++ b/src/platforms/php/guides/laravel/index.mdx @@ -34,15 +34,13 @@ public function report(Throwable $exception) ## Configure -Run: +Setup Sentry with this command: ```shell -$ php artisan sentry:publish +php artisan sentry:publish --dsn=___PUBLIC_DSN___ ``` -that creates the Sentry configuration file (`config/sentry.php`). - -Afterwards, add your DSN to `.env`: +It creates (`config/sentry.php`) and adds the `DSN` to your `.env` file. ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/src/wizard/php/laravel.md b/src/wizard/php/laravel.md index ac76f0dff08ee0..4822f81bc86f5d 100644 --- a/src/wizard/php/laravel.md +++ b/src/wizard/php/laravel.md @@ -41,17 +41,13 @@ public function report(Exception $exception) } ``` -Create the Sentry configuration file (`config/sentry.php`) with this command: +Setup Sentry with this command: ```shell -$ php artisan sentry:publish +php artisan sentry:publish --dsn=___PUBLIC_DSN___ ``` -Add your DSN to `.env`: - -```shell -SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ -``` +It creates (`config/sentry.php`) and adds the `DSN` to your `.env` file. You can easily verify that Sentry is capturing errors in your Laravel application by creating a debug route that will throw an exception: