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] Fix adding multiple bootstrap providers with opcache #50665

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

jessarcher
Copy link
Member

This PR fixes an issue when calling the ServiceProvider::addProviderToBootstrapFile method multiple times with opcache enabled.

Currently, subsequent calls to the method will overwrite any changes from previous calls because the bootstrap/providers.php file is cached on the initial read.

This was an issue with the Jetstream installer, especially when run inside Sail where opcache is enabled by default.

Fixes laravel/jetstream#1454

Credit and thanks to @nunomaduro for this solution! My alternate idea was a static cache of the providers, but I prefer this one.

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.

jetstream:install inertia doesn't produce working scaffold
4 participants