File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ In progress...
164164
165165#### Custom location
166166
167- Sometimes it' s needed to change location of the log files, for example, you want it to be dependent on some command' s argument.
167+ Sometimes it' s needed to change location of the log files. For example, you want it to be dependent on some command' s argument.
168168If that is your case, just override `getLogPath` method in your command class:
169169
170170```php
@@ -174,9 +174,7 @@ class Foo extends Command
174174
175175 protected function getLogPath()
176176 {
177- $name = Str::replaceFirst(' :' , ' /' , $this->getName());
178- $baz = $this->argument(' baz' );
179- return storage_path("logs/{$name}/{$baz}/date.log");
177+ return storage_path("logs/anything/you/want/date.log");
180178 }
181179
182180 // ...
You can’t perform that action at this time.
0 commit comments