UploadedFile
class UploadedFile extends UploadedFile (View source)
Traits
Properties
protected string|null | $hashName | The cache copy of the file's hash name. |
from FileHelpers |
static protected array | $macros | The registered string macros. |
from Macroable |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Begin creating a new file fake.
Store the uploaded file on a filesystem disk.
Store the uploaded file on a filesystem disk with public visibility.
Store the uploaded file on a filesystem disk with public visibility.
Store the uploaded file on a filesystem disk.
Get the contents of the uploaded file.
Get the file's extension supplied by the client.
Create a new file instance from a base instance.
Parse and format the given options.
Details
string|false
store(string $path = '', array|string $options = [])
Store the uploaded file on a filesystem disk.
string|false
storePublicly(string $path = '', array|string $options = [])
Store the uploaded file on a filesystem disk with public visibility.
string|false
storePubliclyAs(string $path, array|string|null $name = null, array|string $options = [])
Store the uploaded file on a filesystem disk with public visibility.
string|false
storeAs(string $path, string|array $name = null, array|string $options = [])
Store the uploaded file on a filesystem disk.
static UploadedFile
createFromBase(UploadedFile $file, bool $test = false)
Create a new file instance from a base instance.