Skip to content

Feature: Laravel Octane compatibility - #142

Open
batnieluyo wants to merge 1 commit into
wire-elements:2.0from
batnieluyo:feature/octane-support
Open

Feature: Laravel Octane compatibility#142
batnieluyo wants to merge 1 commit into
wire-elements:2.0from
batnieluyo:feature/octane-support

Conversation

@batnieluyo

Copy link
Copy Markdown

Description

Guard Spotlight::registerCommand() against duplicate entries, since service provider boot() only runs once per worker under Octane instead of once per request.

Document that registerCommandIf/Unless must not depend on per-request state (e.g. auth()->check()) under Octane, and point to the existing shouldBeShown() hook as the correct per-request-safe alternative.

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.

1 participant