Skip to content

Commit d6eaa73

Browse files
authored
Merge pull request #130 from getsentry/update-env-var-name
Update SENTRY_DSN -> SENTRY_LARAVEL_DSN
2 parents e7f9c37 + e9fc8f8 commit d6eaa73

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ $ php artisan vendor:publish --provider="Sentry\SentryLaravel\SentryLaravelServi
6565
Add your DSN to ``.env``:
6666

6767
```
68-
SENTRY_DSN=https://public:[email protected]/1
68+
SENTRY_LARAVEL_DSN=https://public:[email protected]/1
6969
```
7070

71+
_Note:_ If you use `SENTRY_DSN` in your `.env` it will overwrite the DSN value set in the `config/sentry.php` file.
72+
7173
### Laravel 4.x
7274

7375
Install the ``sentry/sentry-laravel`` package on version `0.8.*` since it's the last version to support Laravel 4:

examples/laravel-5.1/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ MAIL_USERNAME=null
1515
MAIL_PASSWORD=null
1616
MAIL_ENCRYPTION=null
1717

18-
SENTRY_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235
18+
SENTRY_LARAVEL_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235

examples/laravel-5.1/config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return array(
4-
'dsn' => env('SENTRY_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
4+
'dsn' => env('SENTRY_LARAVEL_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
55

66
// capture release as git sha
77
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),

examples/laravel-5.2/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ MAIL_USERNAME=null
2020
MAIL_PASSWORD=null
2121
MAIL_ENCRYPTION=null
2222

23-
SENTRY_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235
23+
SENTRY_LARAVEL_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235

examples/laravel-5.2/config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return array(
4-
'dsn' => env('SENTRY_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
4+
'dsn' => env('SENTRY_LARAVEL_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
55

66
// capture release as git sha
77
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),

examples/laravel-5.4/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ REDIS_HOST=127.0.0.1
1111
REDIS_PASSWORD=null
1212
REDIS_PORT=6379
1313

14-
SENTRY_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235
14+
SENTRY_LARAVEL_DSN=https://e9ebbd88548a441288393c457ec90441:[email protected]/3235

examples/laravel-5.4/config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return array(
4-
'dsn' => env('SENTRY_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
4+
'dsn' => env('SENTRY_LARAVEL_DSN', 'https://e9ebbd88548a441288393c457ec90441:[email protected]/3235'),
55

66
// capture release as git sha
77
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),

examples/laravel-5.5/config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return array(
4-
'dsn' => env('SENTRY_DSN'),
4+
'dsn' => env('SENTRY_LARAVEL_DSN'),
55

66
// capture release as git sha
77
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),

src/Sentry/SentryLaravel/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
return array(
4-
'dsn' => env('SENTRY_DSN'),
4+
'dsn' => env('SENTRY_LARAVEL_DSN'),
55

66
// capture release as git sha
77
// 'release' => trim(exec('git log --pretty="%h" -n1 HEAD')),

0 commit comments

Comments
 (0)