backend.files.get

Triggered in Backend\Controllers\Files.

Fires before a file is output.

Example usage:

Event::listen('backend.files.get', function ((\System\Models\File) $file) {
    // Block access to this file
    return false;

    // Or signal access denied
    throw new \ForbiddenException;
});