selectSourceDisk(); } if ($target) { $this->selectTargetDisk(); } return $this; } private function selectSourceDisk() { $sourceDisk = $this->option('source-disk') ?? env('CONTENT_DISK'); $this->sourceDisk = Storage::disk($sourceDisk); $this->line( sprintf( 'Using %s as source disk', $sourceDisk ) ); return $this; } private function selectTargetDisk() { $targetDisk = $this->option('target-disk') ?? env('DIST_DISK'); $this->targetDisk = Storage::disk($targetDisk); $this->line( sprintf( 'Using %s as target disk', $targetDisk ) ); return $this; } }