Хранилище
класс Хранилище расширяет Facade (View source)
Свойства
| static protected Application | $app | Экземпляр приложения, который используется. | из Facade |
| static protected array | $resolvedInstance | Разрешенные экземпляры объектов. | из Facade |
Методы
| static void | resolved(Closure $callback)
Выполнить замыкание, когда фасад был разрешен. | from Facade |
| static MockInterface | spy()
Преобразовать фасад в шпион Mockery. | from Facade |
| static MockInterface | partialMock()
Инициализировать частичное поддразнивание фасада. | from Facade |
| static Expectation | shouldReceive()
Инициализировать ожидаемое поведение мока для фасада. | from Facade |
| static MockInterface | createFreshMockInstance()
Создать новый экземпляр мока для данного класса. | from Facade |
| static MockInterface | createMock()
Создать новый экземпляр мока для данного класса. | from Facade |
| static bool | isMock()
Определяет, установлен ли мок в качестве экземпляра фасада. | from Facade |
| static string|null | getMockableClass()
Получить подлежащий мокированию класс для связанного экземпляра. | from Facade |
| static void | swap(mixed $instance)
Замена базового экземпляра за фасадом. | from Facade |
| static mixed | getFacadeRoot()
Получить корневой объект за фасадом. | from Facade |
| static string | getFacadeAccessor()
Получить зарегистрированное имя компонента. | |
| static mixed | resolveFacadeInstance(object|string $name)
Разрешить корневой экземпляр фасада из контейнера. | from Facade |
| static void | clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада. | from Facade |
| static void | clearResolvedInstances()
Очистить все разрешенные экземпляры. | from Facade |
| static Application | getFacadeApplication()
Получить экземпляр приложения за фасадом. | from Facade |
| static void | setFacadeApplication(Application $app)
Установить экземпляр приложения. | from Facade |
| static mixed | __callStatic(string $method, array $args)
Обработка динамических статических вызовов объекта. | from Facade |
| static Filesystem | fake(string|null $disk = null, array $config = [])
Заменить указанный диск локальным диском для тестирования. | |
| static Filesystem | persistentFake(string|null $disk = null, array $config = [])
Заменить указанный диск постоянным локальным диском для тестирования. | |
| static Filesystem | assertExists(string|array $path) Нет описания | |
| static Filesystem | assertMissing(string|array $path) Нет описания | |
| static Filesystem | cloud() Нет описания | |
| static Filesystem | build(string|array $root) Нет описания | |
| static Filesystem | disk(string|null $name = null) Нет описания | |
| static FilesystemManager | extend(string $driver, Closure $callback) Нет описания | |
| static StreamedResponse | download(string $path, string|null $name = null, array|null $headers = []) Нет описания | |
| static StreamedResponse | response(string $path, string|null $name = null, array|null $headers = [], string|null $disposition = 'inline') Нет описания | |
| static array | allDirectories(string|null $directory = null) Нет описания | |
| static array | allFiles(string|null $directory = null) Нет описания | |
| static array | directories(string|null $directory = null, bool $recursive = false) Нет описания | |
| static array | files(string|null $directory = null, bool $recursive = false) Нет описания | |
| static bool | append(string $path, string $data) Нет описания | |
| static bool | copy(string $from, string $to) Нет описания | |
| static bool | delete(string|array $paths) Нет описания | |
| static bool | deleteDirectory(string $directory) Нет описания | |
| static bool | exists(string $path) Нет описания |
| static bool | makeDirectory(string $path) Нет описания | |
| static bool | missing(string $path) Нет описания | |
| static bool | move(string $from, string $to) Нет описания | |
| static bool | prepend(string $path, string $data) Нет описания | |
| static bool | put(string $path, UploadedFile|string|resource $contents, mixed $options = []) Нет описания | |
| static bool | setVisibility(string $path, string $visibility) Нет описания | |
| static bool | writeStream(string $path, resource $resource, array $options = []) Нет описания | |
| static int | lastModified(string $path) Нет описания | |
| static int | size(string $path) Нет описания | |
| static resource|null | readStream(string $path) Нет описания | |
| static string | get(string $path) Нет описания | |
| static string | getVisibility(string $path) Нет описания | |
| static string | path(string $path) Нет описания | |
| static string | temporaryUrl(string $path, DateTimeInterface $expiration, array $options = []) Нет описания | |
| static string | url(string $path) Нет описания | |
| static string|false | mimeType(string $path) Нет описания | |
| 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 void | macro(string $name, object|callable $macro) Нет описания | |
| static void | buildTemporaryUrlsUsing(Closure $callback) Нет описания |
Подробности
static void resolved(Closure $callback)
Выполнить замыкание, когда фасад был разрешен.
static MockInterface spy()
Преобразовать фасад в шпион Mockery.
static MockInterface partialMock()
Инициализировать частичный двойник на фасаде.
static Expectation shouldReceive()
Инициализировать ожидание двойника на фасаде.
static protected MockInterface createFreshMockInstance()
Создать новый экземпляр двойника для указанного класса.
static protected MockInterface createMock()
Создать новый экземпляр двойника для указанного класса.
static protected bool isMock()
Определяет, установлен ли двойник как экземпляр фасада.
static protected string|null getMockableClass()
Получить класс, который можно смоделировать, для привязанного экземпляра.
static void swap(mixed $instance)
Произвести обмен базовым экземпляром за фасадом.
static mixed getFacadeRoot()
Получить корневый объект за фасадом.
static protected string getFacadeAccessor()
Получить зарегистрированное имя компонента.
static protected mixed resolveFacadeInstance(object|string $name)
Разрешить корневой экземпляр фасада из контейнера.
static void clearResolvedInstance(string $name)
Очистить разрешенный экземпляр фасада.
static void clearResolvedInstances()
Очистить все разрешенные экземпляры.
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 assertExists(string|array $path)
Без описания
static Filesystem assertMissing(string|array $path)
Без описания
static Filesystem cloud()
Без описания
static Filesystem build(string|array $root)
Без описания
static Filesystem disk(string|null $name = null)
Без описания
static FilesystemManager extend(string $driver, Closure $callback)
Без описания
static StreamedResponse download(string $path, string|null $name = null, array|null $headers = [])
Без описания
static StreamedResponse response(string $path, string|null $name = null, array|null $headers = [], string|null $disposition = 'inline')
Без описания
static array allDirectories(string|null $directory = null)
Без описания
static array allFiles(string|null $directory = null)
Без описания
static array directories(string|null $directory = null, bool $recursive = false)
Без описания
static array files(string|null $directory = null, bool $recursive = false)
Без описания
static bool append(string $path, string $data)
Без описания
static bool copy(string $from, string $to)
Без описания
static bool delete(string|array $paths)
Без описания
static bool deleteDirectory(string $directory)
Без описания
static bool exists(string $path)
Без описания
static bool makeDirectory(string $path)
Без описания
static bool missing(string $path)
Без описания
static bool move(string $from, string $to)
Без описания
static bool prepend(string $path, string $data)
Без описания
static bool put(string $path, UploadedFile|string|resource $contents, mixed $options = [])
Без описания
static bool setVisibility(string $path, string $visibility)
Без описания
static bool writeStream(string $path, resource $resource, array $options = [])
Без описания
static int lastModified(string $path)
Без описания
static int size(string $path)
Без описания
static resource|null readStream(string $path)
Без описания
static string get(string $path)
Без описания
static string getVisibility(string $path)
Без описания
static string path(string $path)
Без описания
static string temporaryUrl(string $path, DateTimeInterface $expiration, array $options = [])
Без описания
static string url(string $path)
Без описания
static string|false mimeType(string $path)
Без описания
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 void macro(string $name, object|callable $macro)
Нет описания
static void buildTemporaryUrlsUsing(Closure $callback)
Нет описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/Facades/Storage.html