FilesystemManager

FilesystemManager class FilesystemManager implements Factory (View source) Methods void __construct(Application $app) Create a new filesystem manager instance. Filesystem drive(string $name = null) Get a filesystem instance. Filesystem disk(string $name = null) Get a filesystem instance. Filesystem cloud() Get a default cloud filesystem instance. Filesystem createLocalDriver(array $config) Create an instance of the local driver. Filesystem createFtpDriver(array $c

FilesystemAdapter::__construct()

void __construct(FilesystemInterface $driver) Create a new filesystem adapter instance. Parameters FilesystemInterface $driver Return Value void

FilesystemAdapter::__call()

mixed __call(string $method, array $parameters) Pass dynamic methods call onto Flysystem. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

FilesystemAdapter::url()

string url(string $path) Get the URL for the file at the given path. Parameters string $path Return Value string

FilesystemAdapter::size()

int size(string $path) Get the file size of a given file. Parameters string $path Return Value int

FilesystemAdapter::setVisibility()

void setVisibility(string $path, string $visibility) Set the visibility for the given path. Parameters string $path string $visibility Return Value void

FilesystemAdapter::putFileAs()

string|false putFileAs(string $path, File|UploadedFile $file, string $name, string $visibility = null) Store the uploaded file on the disk with a given name. Parameters string $path File|UploadedFile $file string $name string $visibility Return Value string|false

FilesystemAdapter::putFile()

string|false putFile(string $path, UploadedFile $file, string $visibility = null) Store the uploaded file on the disk. Parameters string $path UploadedFile $file string $visibility Return Value string|false

FilesystemAdapter::put()

bool put(string $path, string|resource $contents, string $visibility = null) Write the contents of a file. Parameters string $path string|resource $contents string $visibility Return Value bool

FilesystemAdapter::prepend()

int prepend(string $path, string $data, string $separator = PHP_EOL) Prepend to a file. Parameters string $path string $data string $separator Return Value int