Cloud
interface Cloud implements Filesystem (View source)
Methods
Get the full path to the file that exists at the given relative path.
Write the contents of a file.
Store the uploaded file on the disk.
Store the uploaded file on the disk with a given name.
Write a new file using a stream.
Set the visibility for the given path.
Get an array of all files in a directory.
Get all of the files from the given directory (recursive).
Get all of the directories within a given directory.
Get all (recursive) of the directories within a given directory.
Get the URL for the file at the given path.
Details
bool
put(string $path, StreamInterface|File|UploadedFile|string|resource $contents, mixed $options = [])
Write the contents of a file.
string|false
putFile(File|UploadedFile|string $path, File|UploadedFile|string|array|null $file = null, mixed $options = [])
Store the uploaded file on the disk.
string|false
putFileAs(File|UploadedFile|string $path, File|UploadedFile|string|array|null $file, string|array|null $name = null, mixed $options = [])
Store the uploaded file on the disk with a given name.
bool
writeStream(string $path, resource $resource, array $options = [])
Write a new file using a stream.
string[]
files(string|null $directory = null, bool $recursive = false)
Get an array of all files in a directory.
string[]
allFiles(string|null $directory = null)
Get all of the files from the given directory (recursive).
string[]
directories(string|null $directory = null, bool $recursive = false)
Get all of the directories within a given directory.