File
Illuminate\Support\Facades\File
class src/Illuminate/Support/Facades/File.php
allDirectories
v12.36.1 から
static @method
static allDirectories(string $directory): array
-
v12.36.1
追加
- 変更後
@method static allDirectories(string $directory): array
allFiles
v11.0.0 以前から
static @method
static allFiles(string $directory, bool $hidden = false): \Symfony\Component\Finder\SplFileInfo[]
-
v11.0.0
追加
- 変更後
@method static allFiles(string $directory, bool $hidden = false): \Symfony\Component\Finder\SplFileInfo[]
append
v11.0.0 以前から
static @method
static append(string $path, string $data, bool $lock = false): int
-
v11.0.0
追加
- 変更後
@method static append(string $path, string $data, bool $lock = false): int
basename
v11.0.0 以前から
static @method
static basename(string $path): string
-
v11.0.0
追加
- 変更後
@method static basename(string $path): string
chmod
v11.0.0 以前から
static @method
static chmod(string $path, int|null $mode = null): mixed
-
v11.0.0
追加
- 変更後
@method static chmod(string $path, int|null $mode = null): mixed
cleanDirectory
v11.0.0 以前から
static @method
static cleanDirectory(string $directory): bool
-
v11.0.0
追加
- 変更後
@method static cleanDirectory(string $directory): bool
copy
v11.0.0 以前から
static @method
static copy(string $path, string $target): bool
-
v11.0.0
追加
- 変更後
@method static copy(string $path, string $target): bool
copyDirectory
v11.0.0 以前から
static @method
static copyDirectory(string $directory, string $destination, int|null $options = null): bool
-
v11.0.0
追加
- 変更後
@method static copyDirectory(string $directory, string $destination, int|null $options = null): bool
delete
v11.0.0 以前から
static @method
static delete(string|array $paths): bool
-
v11.0.0
追加
- 変更後
@method static delete(string|array $paths): bool
deleteDirectories
v11.0.0 以前から
static @method
static deleteDirectories(string $directory): bool
-
v11.0.0
追加
- 変更後
@method static deleteDirectories(string $directory): bool
deleteDirectory
v11.0.0 以前から
static @method
static deleteDirectory(string $directory, bool $preserve = false): bool
-
v11.0.0
追加
- 変更後
@method static deleteDirectory(string $directory, bool $preserve = false): bool
directories
v11.0.0 以前から
static @method
static directories(string $directory, array|string|int $depth = 0): array
dirname
v11.0.0 以前から
static @method
static dirname(string $path): string
-
v11.0.0
追加
- 変更後
@method static dirname(string $path): string
ensureDirectoryExists
v11.0.0 以前から
static @method
static ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true): void
-
v11.0.0
追加
- 変更後
@method static ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true): void
exists
v11.0.0 以前から
static @method
static exists(string $path): bool
-
v11.0.0
追加
- 変更後
@method static exists(string $path): bool
extension
v11.0.0 以前から
static @method
static extension(string $path): string
-
v11.0.0
追加
- 変更後
@method static extension(string $path): string
files
v11.0.0 以前から
static @method
static files(string $directory, bool $hidden = false, array|string|int $depth = 0): \Symfony\Component\Finder\SplFileInfo[]
-
v11.0.0
追加
- 変更後
@method static files(string $directory, bool $hidden = false): \Symfony\Component\Finder\SplFileInfo[]
-
v12.37.0
シグネチャ変更
- 変更前
@method static files(string $directory, bool $hidden = false): \Symfony\Component\Finder\SplFileInfo[]- 変更後
@method static files(string $directory, bool $hidden = false, array|string|int $depth = 0): \Symfony\Component\Finder\SplFileInfo[]
flushMacros
v11.0.0 以前から
static @method
static flushMacros(): void
-
v11.0.0
追加
- 変更後
@method static flushMacros(): void
get
v11.0.0 以前から
static @method
static get(string $path, bool $lock = false): string
-
v11.0.0
追加
- 変更後
@method static get(string $path, bool $lock = false): string
getRequire
v11.0.0 以前から
static @method
static getRequire(string $path, array $data = []): mixed
-
v11.0.0
追加
- 変更後
@method static getRequire(string $path, array $data = []): mixed
glob
v11.0.0 以前から
static @method
static glob(string $pattern, int $flags = 0): array
-
v11.0.0
追加
- 変更後
@method static glob(string $pattern, int $flags = 0): array
guessExtension
v11.0.0 以前から
static @method
static guessExtension(string $path): string|null
-
v11.0.0
追加
- 変更後
@method static guessExtension(string $path): string|null
hash
v11.0.0 以前から
static @method
static hash(string $path, string $algorithm = 'md5'): string|false
hasMacro
v11.0.0 以前から
static @method
static hasMacro(string $name): bool
-
v11.0.0
追加
- 変更後
@method static hasMacro(string $name): bool
hasSameHash
v11.0.0 以前から
static @method
static hasSameHash(string $firstFile, string $secondFile): bool
-
v11.0.0
追加
- 変更後
@method static hasSameHash(string $firstFile, string $secondFile): bool
isDirectory
v11.0.0 以前から
static @method
static isDirectory(string $directory): bool
-
v11.0.0
追加
- 変更後
@method static isDirectory(string $directory): bool
isEmptyDirectory
v11.0.0 以前から
static @method
static isEmptyDirectory(string $directory, bool $ignoreDotFiles = false): bool
-
v11.0.0
追加
- 変更後
@method static isEmptyDirectory(string $directory, bool $ignoreDotFiles = false): bool
isFile
v11.0.0 以前から
static @method
static isFile(string $file): bool
-
v11.0.0
追加
- 変更後
@method static isFile(string $file): bool
isReadable
v11.0.0 以前から
static @method
static isReadable(string $path): bool
-
v11.0.0
追加
- 変更後
@method static isReadable(string $path): bool
isWritable
v11.0.0 以前から
static @method
static isWritable(string $path): bool
-
v11.0.0
追加
- 変更後
@method static isWritable(string $path): bool
json
v11.0.0 以前から
static @method
static json(string $path, int $flags = 0, bool $lock = false): array
-
v11.0.0
追加
- 変更後
@method static json(string $path, int $flags = 0, bool $lock = false): array
lastModified
v11.0.0 以前から
static @method
static lastModified(string $path): int
-
v11.0.0
追加
- 変更後
@method static lastModified(string $path): int
lines
v11.0.0 以前から
static @method
static lines(string $path): \Illuminate\Support\LazyCollection
-
v11.0.0
追加
- 変更後
@method static lines(string $path): \Illuminate\Support\LazyCollection
link
v11.0.0 以前から
static @method
static link(string $target, string $link): bool|null
-
v11.0.0
追加
- 変更後
@method static link(string $target, string $link): bool|null
macro
v11.0.0 以前から
static @method
static macro(string $name, object|callable $macro): void
-
v11.0.0
追加
- 変更後
@method static macro(string $name, object|callable $macro): void
-
v11.8.0
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro): void- 変更後
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void
-
v11.23.3
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void- 変更後
@method static macro(string $name, object|callable $macro): void
makeDirectory
v11.0.0 以前から
static @method
static makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false): bool
-
v11.0.0
追加
- 変更後
@method static makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false): bool
mimeType
v11.0.0 以前から
static @method
static mimeType(string $path): string|false
-
v11.0.0
追加
- 変更後
@method static mimeType(string $path): string|false
missing
v11.0.0 以前から
static @method
static missing(string $path): bool
-
v11.0.0
追加
- 変更後
@method static missing(string $path): bool
mixin
v11.0.0 以前から
static @method
static mixin(object $mixin, bool $replace = true): void
-
v11.0.0
追加
- 変更後
@method static mixin(object $mixin, bool $replace = true): void
move
v11.0.0 以前から
static @method
static move(string $path, string $target): bool
-
v11.0.0
追加
- 変更後
@method static move(string $path, string $target): bool
moveDirectory
v11.0.0 以前から
static @method
static moveDirectory(string $from, string $to, bool $overwrite = false): bool
-
v11.0.0
追加
- 変更後
@method static moveDirectory(string $from, string $to, bool $overwrite = false): bool
name
v11.0.0 以前から
static @method
static name(string $path): string
-
v11.0.0
追加
- 変更後
@method static name(string $path): string
prepend
v11.0.0 以前から
static @method
static prepend(string $path, string $data): int
-
v11.0.0
追加
- 変更後
@method static prepend(string $path, string $data): int
put
v11.0.0 以前から
static @method
static put(string $path, string $contents, bool $lock = false): int|bool
-
v11.0.0
追加
- 変更後
@method static put(string $path, string $contents, bool $lock = false): int|bool
relativeLink
v11.0.0 以前から
static @method
static relativeLink(string $target, string $link): void
-
v11.0.0
追加
- 変更後
@method static relativeLink(string $target, string $link): void
replace
v11.0.0 以前から
static @method
static replace(string $path, string $content, int|null $mode = null): void
-
v11.0.0
追加
- 変更後
@method static replace(string $path, string $content, int|null $mode = null): void
replaceInFile
v11.0.0 以前から
static @method
static replaceInFile(array|string $search, array|string $replace, string $path): void
-
v11.0.0
追加
- 変更後
@method static replaceInFile(array|string $search, array|string $replace, string $path): void
requireOnce
v11.0.0 以前から
static @method
static requireOnce(string $path, array $data = []): mixed
-
v11.0.0
追加
- 変更後
@method static requireOnce(string $path, array $data = []): mixed
size
v11.0.0 以前から
static @method
static size(string $path): int
-
v11.0.0
追加
- 変更後
@method static size(string $path): int
type
v11.0.0 以前から
static @method
static type(string $path): string|false
unless
v11.0.0 以前から
static @method
static unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Filesystem\Filesystem|mixed
-
v11.0.0
追加
- 変更後
@method static unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Filesystem\Filesystem|mixed
when
v11.0.0 以前から
static @method
static when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Filesystem\Filesystem|mixed
-
v11.0.0
追加
- 変更後
@method static when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Filesystem\Filesystem|mixed