Use absolute URLs when rendered in console
This commit is contained in:
parent
0c4c810fac
commit
84751a7384
|
@ -51,7 +51,10 @@ protected function copyFile(array $data)
|
|||
Storage::disk('public')->put($targetPath, $content);
|
||||
}
|
||||
|
||||
return Str::remove(env('APP_URL'), Storage::disk('public')->url($targetPath));
|
||||
return Str::remove(
|
||||
app()->runningInConsole() ? '' : env('APP_URL'),
|
||||
Storage::disk('public')->url($targetPath)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user