File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
platforms/php/guides/laravel Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,13 @@ public function report(Throwable $exception)
3434
3535## Configure
3636
37- Run :
37+ Setup Sentry with this command :
3838
3939``` shell
40- $ php artisan sentry:publish
40+ php artisan sentry:publish --dsn=___PUBLIC_DSN___
4141```
4242
43- that creates the Sentry configuration file (` config/sentry.php ` ).
44-
45- Afterwards, add your DSN to ` .env ` :
43+ It creates (` config/sentry.php ` ) and adds the ` DSN ` to your ` .env ` file.
4644
4745``` shell {filename:.env}
4846SENTRY_LARAVEL_DSN=___PUBLIC_DSN___
Original file line number Diff line number Diff line change @@ -41,17 +41,13 @@ public function report(Exception $exception)
4141}
4242```
4343
44- Create the Sentry configuration file ( ` config/sentry.php ` ) with this command:
44+ Setup Sentry with this command:
4545
4646``` shell
47- $ php artisan sentry:publish
47+ php artisan sentry:publish --dsn=___PUBLIC_DSN___
4848```
4949
50- Add your DSN to ` .env ` :
51-
52- ``` shell
53- SENTRY_LARAVEL_DSN=___PUBLIC_DSN___
54- ```
50+ It creates (` config/sentry.php ` ) and adds the ` DSN ` to your ` .env ` file.
5551
5652You can easily verify that Sentry is capturing errors in your Laravel application by creating a debug route that will throw an exception:
5753
You can’t perform that action at this time.
0 commit comments