src/Cleaner/Commands/Cleaner.php
public function handle()
    {
        foreach ($this->config as $file) {
            $seconds = $this->convertToSeconds($file['expires']);
            
            if (!is_array($file['path'])) {
                $file['path'] = [$file['path']];
            }
            
            foreach ($file['path'] as $key => $filepath) {
                if (ends_with($filepath, '*')) {
                    $glob = glob($filepath);
                    unset($file['path'][$key]);
                    $file['path'] = array_merge($file['path'], $glob);
                }
            }
            
            $this->delete($file, $seconds);
        }
    }
public function handle()
    {
        foreach ($this->config as $file) {
            $seconds = $this->convertToSeconds($file['expires']);
            
            if (!is_array($file['path'])) {
                $file['path'] = [$file['path']];
            }
            
            foreach ($file['path'] as $key => $filepath) {
                if (ends_with($filepath, '*')) {
                    $glob = glob($filepath);
                    unset($file['path'][$key]);
                    $file['path'] = array_merge($file['path'], $glob);
                }
            }
            
            $this->delete($file, $seconds);
        }
    }
Execute the console command.

@return mixed