v1.0.3
Release Notes for v1.0.3:
In this release, a new function download
has been added to the LogWeaver
class. This function allows you to download a log file from the storage disk.
Here's a brief overview of the new function:
download(string $path, $name = null, array $headers = []): StreamedResponse
: This function takes in three parameters:$path
,$name
, and$headers
. The$path
parameter is the path of the file in the storage disk. The$name
parameter is an optional parameter that specifies the name of the downloaded file. The$headers
parameter is an optional array of headers to be included in the response. The function returns aStreamedResponse
, which represents the response of the file download.
This new function enhances the functionality of the LogWeaver
class by providing an easy way to download log files.