Skip to content

Conversation

@ALameLlama
Copy link
Contributor

@ALameLlama ALameLlama commented Jul 28, 2025

I recently started to use Laravel octane as was surprised withScopedSingletons or withScoped method didn't already exist but one exists for withSingletons.

In this PR I took the same logic we have for withSingletons and created a new method.

If it fits into Laravel better I can rename withScopedSingletons to withScoped

If you need me to do any changes, I'd be more then happy

@ALameLlama ALameLlama changed the title [12.x] feat(ApplicationBuilder): add withScopedSingletons [12.x] Add withScopedSingletons to ApplicationBuilder Jul 28, 2025
@taylorotwell taylorotwell merged commit 477b703 into laravel:12.x Jul 30, 2025
62 checks passed
@ALameLlama ALameLlama deleted the feat/add-with-scoped-singletons branch July 30, 2025 22:53
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