<?php is_resource(mixed $value): bool
<?php $stream = fopen($file->getRealPath(), 'r'); $this->disk()->put($path, $stream); if (is_resource($stream)) { fclose($stream); }