Skip to content

Commit

Permalink
Add raven sentry config defaults (#26)
Browse files Browse the repository at this point in the history
* removed incorrect docblock

* Added default config values for Raven/Sentry

* fixed composer.json

* removed unnecessary code

* updated .travis.yml

* updated changelog and readme
  • Loading branch information
tylercd100 committed Apr 15, 2016
1 parent f7c26a1 commit 698f1ba
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ language: php

php:
- 5.5.9
- 5.5
- 5.6
- 7.0
- hhvm

env:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `LERN` will be documented in this file.

### 3.3.1
- Added default config values for Raven/Sentry

### 3.3.0
- Extracted notification functions into its [own package](https://github.com/tylercd100/laravel-notify)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Currently supported notification channels via [Monolog](https://github.com/Selda
- [Flowdock](https://www.flowdock.com/)
- [Plivo](https://www.plivo.com/) an SMS messaging service.
- [Twilio](https://www.twilio.com/) an SMS messaging service.
- [Sentry](https://getsentry.com) via [Raven](https://github.com/getsentry/raven-php)

## Migrating from `2.x` to `3.x`
Version 3.x introduces the ability to collect more information from the error such as the user_id, url, method, and input data. In order to use 3.x you will need to copy over the new [config file](https://github.com/tylercd100/lern/blob/master/config/lern.php), the migration file and then migrate it.
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@
"minimum-stability": "stable",
"require": {
"php": "^5.4|^7.0",
"illuminate/support": "^5.0.0",
"illuminate/support": "^5.0",
"monolog/monolog": "~1.11",
"tylercd100/monolog-sms":"^1.1.0",
"tylercd100/laravel-notify": "^1.4.2"
"tylercd100/laravel-notify": "^1.6"
},
"require-dev": {
"orchestra/testbench": "^3.1.0",
"orchestra/testbench": "^3.1",
"phpunit/phpunit": "^4.8 || ^5.0",
"doctrine/dbal": "~2.3"
},
Expand Down
7 changes: 7 additions & 0 deletions config/lern.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@
'secret' => env('TWILIO_AUTH_SECRET'),
'to' => env('TWILIO_TO'),
'from' => env('TWILIO_FROM'),
],

/**
* Raven settings
*/
'raven'=>[
'dsn' => env('RAVEN_DSN'),
]
],

Expand Down

0 comments on commit 698f1ba

Please sign in to comment.