https://github.com/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.
https://github.com/outl1ne/laravel-generate-storage-structure
Last synced: about 2 months ago
JSON representation
This package generates the Laravel storage folder structure. Useful when mounting an empty directory to replace `storage/` in production or staging environments.
- Host: GitHub
- URL: https://github.com/outl1ne/laravel-generate-storage-structure
- Owner: outl1ne
- License: mit
- Created: 2020-04-08T12:01:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-13T06:39:07.000Z (4 months ago)
- Last Synced: 2025-03-24T06:05:06.991Z (2 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.
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
```