Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/platforms/php/guides/laravel/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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___
Expand Down
10 changes: 3 additions & 7 deletions src/wizard/php/laravel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down