app/Console/Commands/SyncMedia.php
/**
     * Sync all files in the configured media path.
     */
Sync all files in the configured media path.
Sync all files in the configured media path .
protected function syncAll()
    {
        $this->info('Koel syncing started. All we need now is just a little patience…');
        $tags = $this->option('tags') ? explode(',', $this->option('tags')) : [];
        Media::sync(null, $tags, $this->option('force'), $this);
        $this->output->writeln("<info>Completed! {$this->synced} new or updated song(s)</info>, "
            ."{$this->ignored} unchanged song(s), "
            ."and <comment>{$this->invalid} invalid file(s)</comment>.");
    }
protected function syncAll ( ) { $ this -> info ( 'Koel syncing started. All we need now is just a little patience…'); $ tags = $ this -> option ( 'tags' ) ? explode ( ',' , $ this -> option ( 'tags' ) ) : [ ] ; Media :: sync ( null , $ tags , $ this -> option ( 'force' ) , $ this ) ; $ this -> output -> writeln ( " <info>Completed!  { $ this -> synced }  new or updated song(s)</info>,  " . " { $ this -> ignored }  unchanged song(s),  " . " and <comment> { $ this -> invalid }  invalid file(s)</comment>. " ) ; }
Sync all files in the configured media path.
Sync all files in the configured media path .
// Get the tags to sync. // Notice that this is only meaningful for existing records. // New records will have every applicable field sync'ed in.