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 f7bcac6 commit 1d5aa0cCopy full SHA for 1d5aa0c
src/HttpLogger.php
@@ -3,6 +3,7 @@
3
namespace Bilfeldt\LaravelHttpClientLogger;
4
5
use Illuminate\Support\Arr;
6
+use Illuminate\Support\Facades\Date;
7
use Illuminate\Support\Facades\Log;
8
use Illuminate\Support\Facades\Storage;
9
use Illuminate\Support\Str;
@@ -54,7 +55,7 @@ protected function getReplace(): array
54
55
56
protected function getFileName(): string
57
{
- return (Arr::get($this->config, 'prefix_timestamp') ? now()->format(Arr::get($this->config, 'prefix_timestamp')) : '')
58
+ return (Arr::get($this->config, 'prefix_timestamp') ? Date::now()->format(Arr::get($this->config, 'prefix_timestamp')) : '')
59
.Arr::get($this->config, 'filename');
60
}
61
0 commit comments