media.file.rename

Triggered in Media\Widgets\MediaManager.

Called after a file is renamed / moved

Example usage:

Event::listen('media.file.rename', function ((\Media\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);
});