diff --git a/src/platforms/php/guides/laravel/index.mdx b/src/platforms/php/guides/laravel/index.mdx index d904bac72dc5b..1bf09c3e471a4 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 ac76f0dff08ee..4822f81bc86f5 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: