Alexusmai\LaravelFileManager\Events\BeforeInitialization
Example:
\Event::listen('Alexusmai\LaravelFileManager\Events\BeforeInitialization',
function ($event) {
}
);
Alexusmai\LaravelFileManager\Events\DiskSelected
Example:
\Event::listen('Alexusmai\LaravelFileManager\Events\DiskSelected',
function ($event) {
\Log::info('DiskSelected:', [$event->disk()]);
}
);
Alexusmai\LaravelFileManager\Events\FilesUploading
\Event::listen('Alexusmai\LaravelFileManager\Events\FilesUploading',
function ($event) {
\Log::info('FilesUploading:', [
$event->disk(),
$event->path(),
$event->files(),
$event->overwrite(),
]);
}
);
Alexusmai\LaravelFileManager\Events\FilesUploaded
\Event::listen('Alexusmai\LaravelFileManager\Events\FilesUploaded',
function ($event) {
\Log::info('FilesUploaded:', [
$event->disk(),
$event->path(),
$event->files(),
$event->overwrite(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Deleting
\Event::listen('Alexusmai\LaravelFileManager\Events\Deleting',
function ($event) {
\Log::info('Deleting:', [
$event->disk(),
$event->items(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Deleted
\Event::listen('Alexusmai\LaravelFileManager\Events\Deleted',
function ($event) {
\Log::info('Deleted:', [
$event->disk(),
$event->items(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Paste
\Event::listen('Alexusmai\LaravelFileManager\Events\Paste',
function ($event) {
\Log::info('Paste:', [
$event->disk(),
$event->path(),
$event->clipboard(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Rename
\Event::listen('Alexusmai\LaravelFileManager\Events\Rename',
function ($event) {
\Log::info('Rename:', [
$event->disk(),
$event->newName(),
$event->oldName(),
$event->type(), // 'file' or 'dir'
]);
}
);
Alexusmai\LaravelFileManager\Events\Download
\Event::listen('Alexusmai\LaravelFileManager\Events\Download',
function ($event) {
\Log::info('Download:', [
$event->disk(),
$event->path(),
]);
}
);
When using a text editor, the file you are editing is also downloaded! And this event is triggered!
Alexusmai\LaravelFileManager\Events\DirectoryCreating
\Event::listen('Alexusmai\LaravelFileManager\Events\DirectoryCreating',
function ($event) {
\Log::info('DirectoryCreating:', [
$event->disk(),
$event->path(),
$event->name(),
]);
}
);
Alexusmai\LaravelFileManager\Events\DirectoryCreated
\Event::listen('Alexusmai\LaravelFileManager\Events\DirectoryCreated',
function ($event) {
\Log::info('DirectoryCreated:', [
$event->disk(),
$event->path(),
$event->name(),
]);
}
);
Alexusmai\LaravelFileManager\Events\FileCreating
\Event::listen('Alexusmai\LaravelFileManager\Events\FileCreating',
function ($event) {
\Log::info('FileCreating:', [
$event->disk(),
$event->path(),
$event->name(),
]);
}
);
Alexusmai\LaravelFileManager\Events\FileCreated
\Event::listen('Alexusmai\LaravelFileManager\Events\FileCreated',
function ($event) {
\Log::info('FileCreated:', [
$event->disk(),
$event->path(),
$event->name(),
]);
}
);
Alexusmai\LaravelFileManager\Events\FileUpdate
\Event::listen('Alexusmai\LaravelFileManager\Events\FileUpdate',
function ($event) {
\Log::info('FileUpdate:', [
$event->disk(),
$event->path(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Zip
\Event::listen('Alexusmai\LaravelFileManager\Events\Zip',
function ($event) {
\Log::info('Zip:', [
$event->disk(),
$event->path(),
$event->name(),
$event->elements(),
]);
}
);
Alexusmai\LaravelFileManager\Events\ZipCreated
\Event::listen('Alexusmai\LaravelFileManager\Events\ZipCreated',
function ($event) {
\Log::info('ZipCreated:', [
$event->disk(),
$event->path(),
$event->name(),
$event->elements(),
]);
}
);
Alexusmai\LaravelFileManager\Events\ZipCreated
\Event::listen('Alexusmai\LaravelFileManager\Events\ZipFailed',
function ($event) {
\Log::info('ZipFailed:', [
$event->disk(),
$event->path(),
$event->name(),
$event->elements(),
]);
}
);
Alexusmai\LaravelFileManager\Events\Unzip
\Event::listen('Alexusmai\LaravelFileManager\Events\Unzip',
function ($event) {
\Log::info('Unzip:', [
$event->disk(),
$event->path(),
$event->folder(),
]);
}
);
Alexusmai\LaravelFileManager\Events\UnzipCreated
\Event::listen('Alexusmai\LaravelFileManager\Events\UnzipCreated',
function ($event) {
\Log::info('UnzipCreated:', [
$event->disk(),
$event->path(),
$event->folder(),
]);
}
);
Alexusmai\LaravelFileManager\Events\UnzipFailed
\Event::listen('Alexusmai\LaravelFileManager\Events\UnzipFailed',
function ($event) {
\Log::info('UnzipFailed:', [
$event->disk(),
$event->path(),
$event->folder(),
]);
}
);