From 698f1badfcf105652956f8a90e753f7d7943db9b Mon Sep 17 00:00:00 2001 From: Tyler Arbon Date: Fri, 15 Apr 2016 10:12:19 -0600 Subject: [PATCH] Add raven sentry config defaults (#26) * removed incorrect docblock * Added default config values for Raven/Sentry * fixed composer.json * removed unnecessary code * updated .travis.yml * updated changelog and readme --- .travis.yml | 2 -- CHANGELOG.md | 3 +++ README.md | 1 + composer.json | 7 +++---- config/lern.php | 7 +++++++ 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 928b259..fae0ece 100755 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,8 @@ language: php php: - 5.5.9 - - 5.5 - 5.6 - 7.0 - - hhvm env: matrix: diff --git a/CHANGELOG.md b/CHANGELOG.md index bac7fac..d3bb14c 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index da94f79..294bb24 100755 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.json b/composer.json index c3b2060..c7e59d5 100755 --- a/composer.json +++ b/composer.json @@ -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" }, diff --git a/config/lern.php b/config/lern.php index b8aae1d..62d0b85 100755 --- a/config/lern.php +++ b/config/lern.php @@ -105,6 +105,13 @@ 'secret' => env('TWILIO_AUTH_SECRET'), 'to' => env('TWILIO_TO'), 'from' => env('TWILIO_FROM'), + ], + + /** + * Raven settings + */ + 'raven'=>[ + 'dsn' => env('RAVEN_DSN'), ] ],