Skip to content

Commit 35c345e

Browse files
authored
feat: Simplify Laravel onboarding (#2405)
1 parent fb24460 commit 35c345e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/platforms/php/guides/laravel/index.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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}
4846
SENTRY_LARAVEL_DSN=___PUBLIC_DSN___

src/wizard/php/laravel.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

5652
You can easily verify that Sentry is capturing errors in your Laravel application by creating a debug route that will throw an exception:
5753

0 commit comments

Comments
 (0)