Skip to content

Commit 95d2241

Browse files
authored
Merge pull request #20 from aivis/updates
Updates
2 parents 28b44ea + 493507d commit 95d2241

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
[![Latest Unstable Version](https://poser.pugx.org/understand/understand-laravel5/v/unstable.svg)](https://packagist.org/packages/understand/understand-laravel5)
77
[![License](https://poser.pugx.org/understand/understand-laravel5/license.svg)](https://packagist.org/packages/understand/understand-laravel5)
88

9+
- [Quick start](#quick-start)
10+
- [Upgrading To Version 2](#upgrading-to-version-2-of-the-service-provider)
11+
912
### Introduction
1013

1114
This packages provides a full abstraction for Understand.io and provides extra features to improve Laravel's default logging capabilities. It is essentially a wrapper around Laravel's event handler to take full advantage of Understand.io's data aggregation and analysis capabilities.
@@ -24,7 +27,7 @@ composer require understand/understand-laravel5:^2
2427
Understand\UnderstandLaravel5\UnderstandLaravel5ServiceProvider::class,
2528
```
2629

27-
3. Set your Understand.io input key in your `.env` file
30+
3. Set your Understand.io input token in your `.env` file
2831

2932
```php
3033
UNDERSTAND_ENABLED=true
@@ -105,12 +108,17 @@ php artisan vendor:publish --provider="Understand\UnderstandLaravel5\UnderstandL
105108

106109
### Upgrading To Version 2 of the Service Provider
107110

108-
1. Add the following configuration variable to your `.env` file.
111+
1. Update your `package.json` file, change the version of `understand/understand-laravel5` package and run `composer update understand/understand-laravel5`.
112+
```json
113+
"understand/understand-laravel5": "^2.0",
114+
```
115+
116+
2. Add the following configuration variable to your `.env` file.
109117
```php
110118
UNDERSTAND_ENABLED=true
111119
```
112120

113-
2. If you previously created a `understand-laravel.php` config file in your `config` directory, please delete it and follow [Advanced configuration](#advanced-configuration) steps to publish a new version if necessary.
121+
3. If you previously created a `understand-laravel.php` config file in your `config` directory, please delete it and follow [Advanced configuration](#advanced-configuration) steps to publish a new version if necessary.
114122

115123
### Requirements
116124
##### UTF-8
@@ -120,4 +128,4 @@ http://php.net/manual/en/function.json-encode.php
120128

121129
### License
122130

123-
The Laravel Understand.io service provider is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
131+
The Laravel Understand.io service provider is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

src/Understand/UnderstandLaravel5/ExceptionEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function setCurrentStackTrace(array $errorLog)
8282
*/
8383
protected function getCurrentStackTrace()
8484
{
85-
$stackTrace = debug_backtrace();
85+
$stackTrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 100);
8686
$vendorExcluded = false;
8787

8888
foreach($stackTrace as $index => $trace)

0 commit comments

Comments
 (0)