Хранилище
класс Хранилище расширяет Facade (Просмотреть исходный код)
Свойства
| статический защищенный Application | $app | Экземпляр приложения, которое используется в виде фасада. | из Фасада |
| статический защищенный массив | $resolvedInstance | Разрешенные экземпляры объектов. | из Фасада |
| статический защищенный bool | $cached | Указывает, должен ли разрешенный экземпляр кешироваться. | из Фасада |
Методы
| static void | resolved(Closure $callback)
Выполнить Closure, когда фасад будет разрешен. | из Facade |
| static MockInterface | spy()
Преобразовать фасад в шпиона Mockery. | из Facade |
| static MockInterface | partialMock()
Инициализировать частичный макет для фасада. | из Facade |
| static Expectation | shouldReceive()
Инициализировать ожидание макета для фасада. | из Facade |
| static Expectation | expects()
Инициализировать ожидание макета для фасада. | из Facade |
| static MockInterface | createFreshMockInstance()
Создать свежий экземпляр макета для указанного класса. | из Facade |
| static MockInterface | createMock()
Создать свежий экземпляр макета для указанного класса. | из Facade |
| static bool | isMock()
Определяет, установлен ли макет как экземпляр фасада. | из Facade |
| static string|null | getMockableClass()
Получить класс, который можно смоделировать, для привязанного экземпляра. | из Facade |
| static void | swap(mixed $instance)
Переключает базовый экземпляр за фасадом. | из Facade |
| static mixed | getFacadeRoot()
Получить корневый объект за фасадом. | из Facade |
| static string | getFacadeAccessor()
Получить зарегистрированное имя компонента. | |
| static mixed | resolveFacadeInstance(string $name)
Разрешить корневой экземпляр фасада из контейнера. | из Facade |
| static void | clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада. | из Facade |
| static void | clearResolvedInstances()
Очистить все разрешенные экземпляры. | из Facade |
| static Collection | defaultAliases()
Получить стандартные псевдонимы приложения. | из Facade |
| static Application | getFacadeApplication()
Получить экземпляр приложения за фасадом. | из Facade |
| static void | setFacadeApplication(Application $app)
Установить экземпляр приложения. | из Facade |
| static mixed | __callStatic(string $method, array $args)
Обработать динамические статические вызовы к объекту. | из Facade |
| static Filesystem | fake(string|null $disk = null, array $config = [])
Заменить указанный диск локальным тестовым диском. | |
| static Filesystem | persistentFake(string|null $disk = null, array $config = [])
Заменить указанный диск на постоянный локальный тестовый диск. | |
| static Filesystem | drive(string|null $name = null) Без описания | |
| static Filesystem | disk(string|null $name = null) Без описания | |
| static Filesystem | cloud() Без описания | |
| static Filesystem | build(string|array $config) Без описания | |
| static Filesystem | createLocalDriver(array $config) Без описания | |
| static Filesystem | createFtpDriver(array $config) Без описания | |
| static Filesystem | createSftpDriver(array $config) Без описания | |
| static Cloud | createS3Driver(array $config) Без описания | |
| static Filesystem | createScopedDriver(array $config) Без описания | |
| static FilesystemManager | set(string $name, mixed $disk) Без описания | |
| static string | getDefaultDriver() Без описания | |
| static string | getDefaultCloudDriver() Без описания | |
| static FilesystemManager | forgetDisk(array|string $disk) Без описания |
| static void | purge(string|null $name = null) Без описания | |
| static FilesystemManager | extend(string $driver, Closure $callback) Без описания | |
| static FilesystemManager | setApplication(Application $app) Без описания | |
| static bool | exists(string $path) Без описания | |
| static string|null | get(string $path) Без описания | |
| static resource|null | readStream(string $path) Без описания | |
| static bool | put(string $path, string|resource $contents, mixed $options = []) Без описания | |
| static bool | writeStream(string $path, resource $resource, array $options = []) Без описания | |
| static string | getVisibility(string $path) Без описания | |
| static bool | setVisibility(string $path, string $visibility) Без описания | |
| static bool | prepend(string $path, string $data) Без описания | |
| static bool | append(string $path, string $data) Без описания | |
| static bool | delete(string|array $paths) Без описания | |
| static bool | copy(string $from, string $to) Без описания | |
| static bool | move(string $from, string $to) Без описания | |
| static int | size(string $path) Без описания | |
| static int | lastModified(string $path) Без описания | |
| static array | files(string|null $directory = null, bool $recursive = false) Без описания | |
| static array | allFiles(string|null $directory = null) Без описания | |
| static array | directories(string|null $directory = null, bool $recursive = false) Без описания | |
| static array | allDirectories(string|null $directory = null) Без описания | |
| static bool | makeDirectory(string $path) Без описания | |
| static bool | deleteDirectory(string $directory) Без описания | |
| static FilesystemAdapter | assertExists(string|array $path, string|null $content = null) Без описания | |
| static FilesystemAdapter | assertMissing(string|array $path) Без описания | |
| static FilesystemAdapter | assertDirectoryEmpty(string $path) Без описания | |
| static bool | missing(string $path) Без описания | |
| static bool | fileExists(string $path) Без описания | |
| static bool | fileMissing(string $path) Без описания | |
| static bool | directoryExists(string $path) Без описания | |
| static bool | directoryMissing(string $path) Без описания | |
| static string | path(string $path) Без описания | |
| static StreamedResponse | response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline') Без описания | |
| static StreamedResponse | download(string $path, string|null $name = null, array $headers = []) Без описания | |
| static string|false | putFile(string $path, UploadedFile|string $file, mixed $options = []) Без описания | |
| static string|false | putFileAs(string $path, UploadedFile|string $file, string $name, mixed $options = []) Без описания | |
| static string|false | checksum(string $path, array $options = []) Без описания | |
| static string|false | mimeType(string $path) Без описания | |
| static string | url(string $path) Без описания | |
| static bool | providesTemporaryUrls() Без описания | |
| static string | temporaryUrl(string $path, DateTimeInterface $expiration, array $options = []) Без описания | |
| static array | temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = []) Без описания | |
| static FilesystemOperator | getDriver() Без описания | |
| static FilesystemAdapter | getAdapter() Без описания | |
| static array | getConfig() Без описания |
| static void | buildTemporaryUrlsUsing(Closure $callback) Описание отсутствует | |
| static FilesystemAdapter|mixed | when(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) Описание отсутствует | |
| static FilesystemAdapter|mixed | unless(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null) Описание отсутствует | |
| static void | macro(string $name, object|callable $macro) Описание отсутствует | |
| static void | mixin(object $mixin, bool $replace = true) Описание отсутствует | |
| static bool | hasMacro(string $name) Описание отсутствует | |
| static void | flushMacros() Описание отсутствует | |
| static mixed | macroCall(string $method, array $parameters) Описание отсутствует | |
| static bool | has(string $location) Описание отсутствует | |
| static string | read(string $location) Описание отсутствует | |
| static DirectoryListing | listContents(string $location, bool $deep = false) Описание отсутствует | |
| static int | fileSize(string $path) Описание отсутствует | |
| static string | visibility(string $path) Описание отсутствует | |
| static void | write(string $location, string $contents, array $config = []) Описание отсутствует | |
| static void | createDirectory(string $location, array $config = []) Описание отсутствует |
Подробности
static void resolved(Closure $callback)
Выполнить Closure, когда фасад будет разрешён.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный mock на фасаде.
static Expectation shouldReceive()
Инициализировать ожидание mock на фасаде.
static Expectation expects()
Инициализировать ожидание mock на фасаде.
static protected MockInterface createFreshMockInstance()
Создать новый экземпляр mock для данного класса.
static protected MockInterface createMock()
Создать новый экземпляр mock для данного класса.
static protected bool isMock()
Определяет, установлен ли mock в качестве экземпляра фасада.
static protected string|null getMockableClass()
Получить mockable класс для связанного экземпляра.
static void swap(mixed $instance)
Замена подлежащего экземпляра за фасадом.
static mixed getFacadeRoot()
Получить корневой объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(string $name)
Разрешить корневой экземпляр фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить разрешённый экземпляр фасада.
static void clearResolvedInstances()
Очистить все разрешенные экземпляры.
static Collection defaultAliases()
Получить стандартные псевдонимы приложения.
static Application getFacadeApplication()
Получить экземпляр приложения за фасадом.
static void setFacadeApplication(Application $app)
Установить экземпляр приложения.
static mixed __callStatic(string $method, array $args)
Обработка динамических статических вызовов объекта.
static Filesystem fake(string|null $disk = null, array $config = [])
Заменить указанный диск локальным тестовым диском.
static Filesystem persistentFake(string|null $disk = null, array $config = [])
Заменить указанный диск постоянным локальным тестовым диском.
static Filesystem drive(string|null $name = null)
Нет описания
static Filesystem disk(string|null $name = null)
Нет описания
static Filesystem cloud()
Нет описания
static Filesystem build(string|array $config)
Нет описания
static Filesystem createLocalDriver(array $config)
Нет описания
static Filesystem createFtpDriver(array $config)
Нет описания
static Filesystem createSftpDriver(array $config)
Нет описания
static Cloud createS3Driver(array $config)
Нет описания
static Filesystem createScopedDriver(array $config)
Нет описания
static FilesystemManager set(string $name, mixed $disk)
Нет описания
static string getDefaultDriver()
Нет описания
static string getDefaultCloudDriver()
Нет описания
static FilesystemManager forgetDisk(array|string $disk)
Нет описания
static void purge(string|null $name = null)
Описание отсутствует
static FilesystemManager extend(string $driver, Closure $callback)
Описание отсутствует
static FilesystemManager setApplication(Application $app)
Описание отсутствует
static bool exists(string $path)
Описание отсутствует
static string|null get(string $path)
Описание отсутствует
static resource|null readStream(string $path)
Описание отсутствует
static bool put(string $path, string|resource $contents, mixed $options = [])
Описание отсутствует
static bool writeStream(string $path, resource $resource, array $options = [])
Описание отсутствует
static string getVisibility(string $path)
Описание отсутствует
static bool setVisibility(string $path, string $visibility)
Описание отсутствует
static bool prepend(string $path, string $data)
Описание отсутствует
static bool append(string $path, string $data)
Описание отсутствует
static bool delete(string|array $paths)
Описание отсутствует
static bool copy(string $from, string $to)
Описание отсутствует
static bool move(string $from, string $to)
Описание отсутствует
static int size(string $path)
Описание отсутствует
static int lastModified(string $path)
Описание отсутствует
static array files(string|null $directory = null, bool $recursive = false)
Описание отсутствует
static array allFiles(string|null $directory = null)
Описание отсутствует
static array directories(string|null $directory = null, bool $recursive = false)
Описание отсутствует
static array allDirectories(string|null $directory = null)
Без описания
static bool makeDirectory(string $path)
Без описания
static bool deleteDirectory(string $directory)
Без описания
static FilesystemAdapter assertExists(string|array $path, string|null $content = null)
Без описания
static FilesystemAdapter assertMissing(string|array $path)
Без описания
static FilesystemAdapter assertDirectoryEmpty(string $path)
Без описания
static bool missing(string $path)
Без описания
static bool fileExists(string $path)
Без описания
static bool fileMissing(string $path)
Без описания
static bool directoryExists(string $path)
Без описания
static bool directoryMissing(string $path)
Без описания
static string path(string $path)
Без описания
static StreamedResponse response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline')
Без описания
static StreamedResponse download(string $path, string|null $name = null, array $headers = [])
Без описания
static string|false putFile(string $path, UploadedFile|string $file, mixed $options = [])
Без описания
static string|false putFileAs(string $path, UploadedFile|string $file, string $name, mixed $options = [])
Без описания
static string|false checksum(string $path, array $options = [])
Без описания
static string|false mimeType(string $path)
Без описания
static string url(string $path)
Без описания
static bool providesTemporaryUrls()
Без описания
статический string temporaryUrl(string $path, DateTimeInterface $expiration, array $options = [])
Без описания
статический array temporaryUploadUrl(string $path, DateTimeInterface $expiration, array $options = [])
Без описания
статический FilesystemOperator getDriver()
Без описания
статический FilesystemAdapter getAdapter()
Без описания
статический array getConfig()
Без описания
статический void buildTemporaryUrlsUsing(Closure $callback)
Без описания
статический FilesystemAdapter|mixed when(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
Без описания
статический FilesystemAdapter|mixed unless(Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
Без описания
статический void macro(string $name, object|callable $macro)
Без описания
статический void mixin(object $mixin, bool $replace = true)
Без описания
статический bool hasMacro(string $name)
Без описания
статический void flushMacros()
Без описания
статический mixed macroCall(string $method, array $parameters)
Без описания
статический bool has(string $location)
Без описания
статический string read(string $location)
Без описания
статический DirectoryListing listContents(string $location, bool $deep = false)
Без описания
статический int fileSize(string $path)
Без описания
статический string visibility(string $path)
Без описания
статический void write(string $location, string $contents, array $config = [])
Без описания
статический void createDirectory(string $location, array $config = [])
Без описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Support/Facades/Storage.html