We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45872ed commit 201db49Copy full SHA for 201db49
src/controllers/LogViewerController.php
@@ -67,9 +67,11 @@ public function index()
67
return $data;
68
}
69
70
- $firstLog = reset($data['logs']);
71
- if (!$firstLog['context'] && !$firstLog['level']) {
72
- $data['standardFormat'] = false;
+ if (is_array($data['logs'])) {
+ $firstLog = reset($data['logs']);
+ if (!$firstLog['context'] && !$firstLog['level']) {
73
+ $data['standardFormat'] = false;
74
+ }
75
76
77
return app('view')->make('laravel-log-viewer::log', $data);
0 commit comments