Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Test application storage path #51848

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

seriquynh
Copy link
Contributor

The usage of application storage path is a bit complex, so I add some tests based on current behavior.

  • If $_ENV['LARAVEL_STORAGE_PATH'] is set, it will be used.
  • If $_SERVER['LARAVEL_STORAGE_PATH'] is set, it will be used.
  • If both $_ENV['LARAVEL_STORAGE_PATH'] and $_SERVER['LARAVEL_STORAGE_PATH'] are set, the $_ENV global variable is preferred.
  • If both $_ENV['LARAVEL_STORAGE_PATH'] and $_SERVER['LARAVEL_STORAGE_PATH'] are NOT set, it will be based on the base path.
  • useStoragePath will override the storage path and ignore earlier setup.

@taylorotwell taylorotwell merged commit d0c5a40 into laravel:11.x Jun 20, 2024
28 checks passed
@seriquynh seriquynh deleted the test-storage-path branch June 21, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants