start($f, $sizes); } } public function start($f, $sizes) { $l = MediaLibrary::instance(); $folders = array_filter(\Storage::allDirectories('media/'.$f), function($item) use ($f) { return pathinfo($item, PATHINFO_FILENAME) == 'c'; }); foreach ($folders as $folder) { \Storage::deleteDirectory($folder); } } /** * Get the console command arguments. * @return array */ protected function getArguments() { return []; } /** * Get the console command options. * @return array */ protected function getOptions() { return []; } }