File

Illuminate\Support\Facades\File

class src/Illuminate/Support/Facades/File.php

allDirectories

v12.36.1 から

static @method

static allDirectories(string $directory): array
  1. 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[]
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static basename(string $path): string

chmod

v11.0.0 以前から

static @method

static chmod(string $path, int|null $mode = null): mixed
  1. v11.0.0 追加
    変更後
    @method static chmod(string $path, int|null $mode = null): mixed

cleanDirectory

v11.0.0 以前から

static @method

static cleanDirectory(string $directory): bool
  1. v11.0.0 追加
    変更後
    @method static cleanDirectory(string $directory): bool

copy

v11.0.0 以前から

static @method

static copy(string $path, string $target): bool
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static delete(string|array $paths): bool

deleteDirectories

v11.0.0 以前から

static @method

static deleteDirectories(string $directory): bool
  1. v11.0.0 追加
    変更後
    @method static deleteDirectories(string $directory): bool

deleteDirectory

v11.0.0 以前から

static @method

static deleteDirectory(string $directory, bool $preserve = false): bool
  1. 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
  1. v11.0.0 追加
    変更後
    @method static directories(string $directory): array
  2. v12.37.0 シグネチャ変更
    変更前
    @method static directories(string $directory): array
    変更後
    @method static directories(string $directory, array|string|int $depth = 0): array

dirname

v11.0.0 以前から

static @method

static dirname(string $path): string
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static exists(string $path): bool

extension

v11.0.0 以前から

static @method

static extension(string $path): string
  1. 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[]
  1. v11.0.0 追加
    変更後
    @method static files(string $directory, bool $hidden = false): \Symfony\Component\Finder\SplFileInfo[]
  2. 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
  1. v11.0.0 追加
    変更後
    @method static flushMacros(): void

get

v11.0.0 以前から

static @method

static get(string $path, bool $lock = false): string
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static glob(string $pattern, int $flags = 0): array

guessExtension

v11.0.0 以前から

static @method

static guessExtension(string $path): string|null
  1. 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
  1. v11.0.0 追加
    変更後
    @method static hash(string $path, string $algorithm = 'md5'): string
  2. v11.22.0 シグネチャ変更
    変更前
    @method static hash(string $path, string $algorithm = 'md5'): string
    変更後
    @method static hash(string $path, string $algorithm = 'md5'): string|false

hasMacro

v11.0.0 以前から

static @method

static hasMacro(string $name): bool
  1. v11.0.0 追加
    変更後
    @method static hasMacro(string $name): bool

hasSameHash

v11.0.0 以前から

static @method

static hasSameHash(string $firstFile, string $secondFile): bool
  1. v11.0.0 追加
    変更後
    @method static hasSameHash(string $firstFile, string $secondFile): bool

isDirectory

v11.0.0 以前から

static @method

static isDirectory(string $directory): bool
  1. v11.0.0 追加
    変更後
    @method static isDirectory(string $directory): bool

isEmptyDirectory

v11.0.0 以前から

static @method

static isEmptyDirectory(string $directory, bool $ignoreDotFiles = false): bool
  1. v11.0.0 追加
    変更後
    @method static isEmptyDirectory(string $directory, bool $ignoreDotFiles = false): bool

isFile

v11.0.0 以前から

static @method

static isFile(string $file): bool
  1. v11.0.0 追加
    変更後
    @method static isFile(string $file): bool

isReadable

v11.0.0 以前から

static @method

static isReadable(string $path): bool
  1. v11.0.0 追加
    変更後
    @method static isReadable(string $path): bool

isWritable

v11.0.0 以前から

static @method

static isWritable(string $path): bool
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static lastModified(string $path): int

lines

v11.0.0 以前から

static @method

static lines(string $path): \Illuminate\Support\LazyCollection
  1. v11.0.0 追加
    変更後
    @method static lines(string $path): \Illuminate\Support\LazyCollection

macro

v11.0.0 以前から

static @method

static macro(string $name, object|callable $macro): void
  1. v11.0.0 追加
    変更後
    @method static macro(string $name, object|callable $macro): void
  2. 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
  3. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static mimeType(string $path): string|false

missing

v11.0.0 以前から

static @method

static missing(string $path): bool
  1. v11.0.0 追加
    変更後
    @method static missing(string $path): bool

mixin

v11.0.0 以前から

static @method

static mixin(object $mixin, bool $replace = true): void
  1. 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
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static name(string $path): string

prepend

v11.0.0 以前から

static @method

static prepend(string $path, string $data): int
  1. 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
  1. v11.0.0 追加
    変更後
    @method static put(string $path, string $contents, bool $lock = false): int|bool

replace

v11.0.0 以前から

static @method

static replace(string $path, string $content, int|null $mode = null): void
  1. 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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static requireOnce(string $path, array $data = []): mixed

sharedGet

v11.0.0 以前から

static @method

static sharedGet(string $path): string
  1. v11.0.0 追加
    変更後
    @method static sharedGet(string $path): string

size

v11.0.0 以前から

static @method

static size(string $path): int
  1. v11.0.0 追加
    変更後
    @method static size(string $path): int

type

v11.0.0 以前から

static @method

static type(string $path): string|false
  1. v11.0.0 追加
    変更後
    @method static type(string $path): string
  2. v12.54.0 シグネチャ変更
    変更前
    @method static type(string $path): string
    変更後
    @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
  1. 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
  1. v11.0.0 追加
    変更後
    @method static when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null): \Illuminate\Filesystem\Filesystem|mixed