src/Commands/ImportMediaCommand.php
protected function createRecordForFile($disk, $path)
    {
        try {
            $this->uploader->importPath($disk, $path);
            ++$this->counters['created'];
            $this->info("Created Record for file at {$path}", 'v');
        } catch (MediaUploadException $e) {
            $this->warn($e->getMessage(), 'vvv');
            ++$this->counters['skipped'];
            $this->info("Skipped file at {$path}", 'v');
        }
    }
protected function createRecordForFile($disk, $path)
    {
        try {
            $this->uploader->importPath($disk, $path);
            ++$this->counters['created'];
            $this->info("Created Record for file at {$path}", 'v');
        } catch (MediaUploadException $e) {
            $this->warn($e->getMessage(), 'vvv');
            ++$this->counters['skipped'];
            $this->info("Skipped file at {$path}", 'v');
        }
    }
protected function createRecordForFile ( $ disk , $ path ) { try { $ this -> uploader -> importPath ( $ disk , $ path ) ; ++ $ this -> counters [ 'created' ] ; $ this -> info ( "Created Record for file at {$path}" , 'v' ) ; } catch ( MediaUploadException $ e ) { $ this -> warn ( $ e -> getMessage ( ) , 'vvv' ) ; ++ $ this -> counters [ 'skipped' ] ; $ this -> info ( "Skipped file at {$path}" , 'v' ) ; } }
Generate a new media record.
@param  string $disk
@param  string $path
@return void
Generate a new media record .