LaravelPackages.net
Acme Inc.
Toggle sidebar
outl1ne/laravel-generate-storage-structure

This package generates the Laravel storage folder structure. Useful when mounting an empty directory to replace `storage/` in production or staging environments.

6
11
1.1.1
About outl1ne/laravel-generate-storage-structure

outl1ne/laravel-generate-storage-structure is a Laravel package for this package generates the laravel storage folder structure. useful when mounting an empty directory to replace `storage/` in production or staging environments.. It currently has 11 GitHub stars and 6 downloads on Packagist (latest version 1.1.1). Install it with composer require outl1ne/laravel-generate-storage-structure. Discover more Laravel packages by outl1ne or browse all Laravel packages to compare alternatives.

Last updated

Laravel Generate Storage Structure

tests

This package generates the Laravel storage folder structure. Useful when mounting an empty directory to replace storage/ in production or staging environments.

When running a Laravel application with an empty storage directory, you should get an error related with reading/storing files to/from storage directory like ErrorException file_put_contents(/../storage/..): failed to open stream: No such file or directory or similar. This can be fixed by manually creating the folder structure as needed, but it's cumbersome task with automated CI/CD flows.

Usage

composer require outl1ne/laravel-generate-storage-structure

Create app/, framework/ and logs/ directories into the current directory:

generate-storage-structure

Create app/, framework/ and logs/ directories into /storage directory:

generate-storage-structure --storage-path=/storage
Comments