media.file.rename

Triggered in Backend\Widgets\MediaManager.

Called after a file is renamed / moved

Example usage:

Event::listen('media.file.rename', function((\Backend\Widgets\MediaManager) $mediaWidget, (string) $originalPath, (string) $newPath) {
    \Log::info($originalPath . " was moved to " . $path);
});

Or

$mediaWidget->bindEvent('file.rename', function ((string) $originalPath, (string) $newPath) {
    \Log::info($originalPath . " was moved to " . $path);
});