getPathname(); $created = $file->getMTime(); $now = new Carbon(); if (Carbon::createFromTimestamp((int)$created)->lessThan($now->subDays(self::DELETE_FILES_AFTER_X_DAYS))) { unlink($name); }; } return true; } }