Download the PHP package consilience/laravel-storage-ls without Composer
On this page you can find all versions of the php package consilience/laravel-storage-ls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download consilience/laravel-storage-ls
More information about consilience/laravel-storage-ls
Files in consilience/laravel-storage-ls
Package laravel-storage-ls
Short Description List the contents of Laravel file systems.
License MIT
Informations about the package laravel-storage-ls
Laravel Storage ls
List the files of Laravel file systems (aka disks) through a simple artisan command.
Laravel abstracts filesystems, both local and remote,
using the flysystem package and its adapters.
The abstract unit on Laravel or Lumen for a filesystem is a disk,
and each disk is configured in config/filesystems.php
.
This package provides an artisan command (storage:ls
) to quickly and easily peek into a disk
to see files and directories.
The command is read-only, so will not allow files or directories to be added, removed or modified. Any excpetions are left purposely unhandled, so it can aid diagnosing connection problems. There is no interaction expected, so the command can be used in an automated pipeline, and also in environments such as vapor that allow you to run artisan commands, but offer no interactive shell.
Usage
List storage disks
This will return a list of the available disks with the default flagged [*]:
List files/directories in given disk
List files and directories in given directory
List files and directories recursively
Similarly, in long format:
Installation
Laravel and Lumen
There is no further configuration to do on Laravel.
Lumen
Since Lumen does not do discovery on service providers, the provider needs
to be manually registered in bootstrap/app.php
: