diff --git a/.editorconfig b/.editorconfig index dd9a2b5..81162ca 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,5 +11,5 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false -[*.{yml,yaml}] +[*.{yml,yaml,json}] indent_size = 2 diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..7385ea4 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,40 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Install", + "type": "shell", + "command": "composer install", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "revealProblems": "onProblem", + "close": true + } + }, + { + "label": "Update", + "type": "shell", + "command": "composer update", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "revealProblems": "onProblem", + "close": true + } + }, + { + "label": "Test", + "type": "shell", + "command": "composer test", + "problemMatcher": [], + "presentation": { + "reveal": "silent", + "revealProblems": "onProblem", + "close": true + } + } + ] +} diff --git a/composer.json b/composer.json index 7b3cbb4..0f167d0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "kiwilan/sentinel-laravel", "description": "PHP package for Laravel to send errors to Sentinel.", - "version": "0.0.21", + "version": "0.0.22", "keywords": [ "kiwilan", "laravel", diff --git a/src/Sentinel.php b/src/Sentinel.php index 48e89f8..61e3c07 100755 --- a/src/Sentinel.php +++ b/src/Sentinel.php @@ -193,7 +193,7 @@ private function setPayload(): array 'user_agent' => $this->error->userAgent(), 'ip' => $this->error->ip(), 'base_path' => $this->error->basePath(), - 'date_time' => now(config('app.timezone'))->toDateTimeString(), + 'datetime' => now(config('app.timezone'))->toDateTimeString(), 'timezone' => config('app.timezone'), 'current' => $this->error->current()?->toArray(), ];