ForwardsIlluminateFilesystem
Forwards calls to the Laravel File facade to the HydePHP Filesystem Facade, while turning all paths arguments into absolute project paths.
Tags
Table of Contents
Methods
- __callStatic() : string|array<string|int, mixed>|int|bool|null|LazyCollection
- allFiles() : array<string|int, SplFileInfo>
- append() : int
- basename() : string
- chmod() : mixed
- cleanDirectory() : bool
- copy() : bool
- copyDirectory() : bool
- delete() : bool
- deleteDirectories() : bool
- deleteDirectory() : bool
- directories() : array<string|int, mixed>
- dirname() : string
- ensureDirectoryExists() : void
- exists() : bool
- extension() : string
- files() : array<string|int, SplFileInfo>
- get() : string
- getRequire() : mixed
- glob() : array<string|int, string>
- guessExtension() : string|null
- hash() : string
- hasSameHash() : bool
- isDirectory() : bool
- isEmptyDirectory() : bool
- isFile() : bool
- isReadable() : bool
- isWritable() : bool
- lastModified() : int
- lines() : LazyCollection
- link() : void
- makeDirectory() : bool
- mimeType() : string|false
- missing() : bool
- move() : bool
- moveDirectory() : bool
- name() : string
- prepend() : int
- put() : int|bool
- relativeLink() : void
- replace() : void
- replaceInFile() : void
- requireOnce() : mixed
- sharedGet() : string
- size() : int
- type() : string
- getParameterNames() : array<string|int, mixed>
- qualifyArguments() : Collection
- qualifyPathArgument() : string|array<string|int, mixed>
Methods
__callStatic()
public
static __callStatic(string $name, array<string|int, mixed> $arguments) : string|array<string|int, mixed>|int|bool|null|LazyCollection
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
string|array<string|int, mixed>|int|bool|null|LazyCollectionallFiles()
public
static allFiles([string $directory = ][, bool $hidden = false ]) : array<string|int, SplFileInfo>
Parameters
- $directory : string =
- $hidden : bool = false
Return values
array<string|int, SplFileInfo>append()
public
static append([string $path = ][, string $data = ]) : int
Parameters
- $path : string =
- $data : string =
Return values
intbasename()
public
static basename([string $path = ]) : string
Parameters
- $path : string =
Return values
stringchmod()
public
static chmod([string $path = ][, int|null $mode = null ]) : mixed
Parameters
- $path : string =
- $mode : int|null = null
cleanDirectory()
public
static cleanDirectory([string $directory = ]) : bool
Parameters
- $directory : string =
Return values
boolcopy()
public
static copy([string $path = ][, string $target = ]) : bool
Parameters
- $path : string =
- $target : string =
Return values
boolcopyDirectory()
public
static copyDirectory([string $directory = ][, string $destination = ][, int|null $options = null ]) : bool
Parameters
- $directory : string =
- $destination : string =
- $options : int|null = null
Return values
booldelete()
public
static delete([string|array<string|int, mixed> $paths = ]) : bool
Parameters
- $paths : string|array<string|int, mixed> =
Return values
booldeleteDirectories()
public
static deleteDirectories([string $directory = ]) : bool
Parameters
- $directory : string =
Return values
booldeleteDirectory()
public
static deleteDirectory([string $directory = ][, bool $preserve = false ]) : bool
Parameters
- $directory : string =
- $preserve : bool = false
Return values
booldirectories()
public
static directories([string $directory = ]) : array<string|int, mixed>
Parameters
- $directory : string =
Return values
array<string|int, mixed>dirname()
public
static dirname([string $path = ]) : string
Parameters
- $path : string =
Return values
stringensureDirectoryExists()
public
static ensureDirectoryExists([string $path = ][, int $mode = 0755 ][, bool $recursive = true ]) : void
Parameters
- $path : string =
- $mode : int = 0755
- $recursive : bool = true
exists()
public
static exists([string $path = ]) : bool
Parameters
- $path : string =
Return values
boolextension()
public
static extension([string $path = ]) : string
Parameters
- $path : string =
Return values
stringfiles()
public
static files([string $directory = ][, bool $hidden = false ]) : array<string|int, SplFileInfo>
Parameters
- $directory : string =
- $hidden : bool = false
Return values
array<string|int, SplFileInfo>get()
public
static get([string $path = ][, bool $lock = false ]) : string
Parameters
- $path : string =
- $lock : bool = false
Return values
stringgetRequire()
public
static getRequire([string $path = ][, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $path : string =
- $data : array<string|int, mixed> = []
glob()
public
static glob([string $pattern = ][, int $flags = 0 ]) : array<string|int, string>
Parameters
- $pattern : string =
- $flags : int = 0
Return values
array<string|int, string>guessExtension()
public
static guessExtension([string $path = ]) : string|null
Parameters
- $path : string =
Return values
string|nullhash()
public
static hash([string $path = ][, string $algorithm = '\'md5\'' ]) : string
Parameters
- $path : string =
- $algorithm : string = '\'md5\''
Return values
stringhasSameHash()
public
static hasSameHash([string $firstFile = ][, string $secondFile = ]) : bool
Parameters
- $firstFile : string =
- $secondFile : string =
Return values
boolisDirectory()
public
static isDirectory([string $directory = ]) : bool
Parameters
- $directory : string =
Return values
boolisEmptyDirectory()
public
static isEmptyDirectory([string $directory = ][, bool $ignoreDotFiles = false ]) : bool
Parameters
- $directory : string =
- $ignoreDotFiles : bool = false
Return values
boolisFile()
public
static isFile([string $file = ]) : bool
Parameters
- $file : string =
Return values
boolisReadable()
public
static isReadable([string $path = ]) : bool
Parameters
- $path : string =
Return values
boolisWritable()
public
static isWritable([string $path = ]) : bool
Parameters
- $path : string =
Return values
boollastModified()
public
static lastModified([string $path = ]) : int
Parameters
- $path : string =
Return values
intlines()
public
static lines([string $path = ]) : LazyCollection
Parameters
- $path : string =
Return values
LazyCollectionlink()
public
static link([string $target = ][, string $link = ]) : void
Parameters
- $target : string =
- $link : string =
makeDirectory()
public
static makeDirectory([string $path = ][, int $mode = 0755 ][, bool $recursive = false ][, bool $force = false ]) : bool
Parameters
- $path : string =
- $mode : int = 0755
- $recursive : bool = false
- $force : bool = false
Return values
boolmimeType()
public
static mimeType([string $path = ]) : string|false
Parameters
- $path : string =
Return values
string|falsemissing()
public
static missing([string $path = ]) : bool
Parameters
- $path : string =
Return values
boolmove()
public
static move([string $path = ][, string $target = ]) : bool
Parameters
- $path : string =
- $target : string =
Return values
boolmoveDirectory()
public
static moveDirectory([string $from = ][, string $to = ][, bool $overwrite = false ]) : bool
Parameters
- $from : string =
- $to : string =
- $overwrite : bool = false
Return values
boolname()
public
static name([string $path = ]) : string
Parameters
- $path : string =
Return values
stringprepend()
public
static prepend([string $path = ][, string $data = ]) : int
Parameters
- $path : string =
- $data : string =
Return values
intput()
public
static put([string $path = ][, string $contents = ][, bool $lock = false ]) : int|bool
Parameters
- $path : string =
- $contents : string =
- $lock : bool = false
Return values
int|boolrelativeLink()
public
static relativeLink([string $target = ][, string $link = ]) : void
Parameters
- $target : string =
- $link : string =
replace()
public
static replace([string $path = ][, string $content = ]) : void
Parameters
- $path : string =
- $content : string =
replaceInFile()
public
static replaceInFile([array<string|int, mixed>|string $search = ][, array<string|int, mixed>|string $replace = ][, string $path = ]) : void
Parameters
- $search : array<string|int, mixed>|string =
- $replace : array<string|int, mixed>|string =
- $path : string =
requireOnce()
public
static requireOnce([string $path = ][, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $path : string =
- $data : array<string|int, mixed> = []
sharedGet()
public
static sharedGet([string $path = ]) : string
Parameters
- $path : string =
Return values
stringsize()
public
static size([string $path = ]) : int
Parameters
- $path : string =
Return values
inttype()
public
static type([string $path = ]) : string
Parameters
- $path : string =
Return values
stringgetParameterNames()
protected
static getParameterNames(string $name) : array<string|int, mixed>
Parameters
- $name : string
Return values
array<string|int, mixed>qualifyArguments()
protected
static qualifyArguments(array<string|int, string> $parameterNames, array<string|int, mixed> $arguments) : Collection
Parameters
- $parameterNames : array<string|int, string>
- $arguments : array<string|int, mixed>
Return values
CollectionqualifyPathArgument()
protected
static qualifyPathArgument(array<string|int, mixed>|string $path) : string|array<string|int, mixed>
Parameters
- $path : array<string|int, mixed>|string