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...
164
164
165
165
#### Custom location
166
166
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.
168
168
If that is your case, just override `getLogPath` method in your command class:
169
169
170
170
```php
@@ -174,9 +174,7 @@ class Foo extends Command
174
174
175
175
protected function getLogPath()
176
176
{
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");
180
178
}
181
179
182
180
// ...
You can’t perform that action at this time.
0 commit comments