fpassthru
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Output all remaining data on a file pointer
fpassthru
(
resource $stream
):
int
$response
->
setCallback
(function () use (
$path
) {
$stream
=
$this
->
readStream
(
$path
);
fpassthru
(
$stream
);
fclose
(
$stream
);
});
src/Illuminate/Filesystem/FilesystemAdapter.php