Skip to content

docs: explain BroadcastsGlobally and Laravel event listeners - #545

Open
shanerbaner82 wants to merge 1 commit into
mainfrom
docs/broadcasts-globally
Open

shanerbaner82 wants to merge 1 commit into
mainfrom
docs/broadcasts-globally

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

The v4 Events page only explained component listeners, leaving it unclear when native events also reach Laravel listeners. Document NativePHP’s BroadcastsGlobally interface with an AppServiceProvider listener and a custom event example.

Clarifies payload versus event-object delivery, constructor requirements, EDGE versus WebView behavior, and how this differs from Laravel’s ShouldBroadcast and background execution.

Validation: documentation rendering tests passed locally (3 tests, 5 assertions); verified the new section in Chrome on the local docs site; git diff --check passed. The PR contains only the Events documentation change.

This branch has not been deployed

No deployments
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