Skip to content

docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11200

Closed
hectorgrecco wants to merge 108 commits into
laravel:masterfrom
hectorgrecco:add-use-socket-id
Closed

docs: document socket ID retrieval for broadcast()->toOthers() with framework adapters#11200
hectorgrecco wants to merge 108 commits into
laravel:masterfrom
hectorgrecco:add-use-socket-id

Conversation

@hectorgrecco
Copy link
Copy Markdown

Summary

Extends the existing "Only To Others - Configuration" section to document how to retrieve the socket ID when using the framework adapter packages (@laravel/echo-react, @laravel/echo-vue, @laravel/echo-svelte).

Previously, this section only showed the vanilla Echo approach (Echo.socketId()), leaving framework adapter users without guidance — which led to confusion and workarounds (see laravel/echo#474).

What's added

  • echo().socketId() via the exported echo() helper, for interceptor setup and outside-component usage
  • useSocketId() reactive hook/composable/rune for inside-component usage, with examples for all three adapters

Related

taylorotwell and others added 30 commits March 10, 2026 15:20
Removed redundant SalesCoach instantiation example.
* Remove deprecated MCP tools from documentation

* Update boost.md
* Documents `Pint/phpdoc_type_annotations_only`

* Adjusts markdown

* Adjusts tone

* adjusts

* fix diff

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
…vel#11090)

* Add documentation for the new string helper initials introduced in PR laravel/framework#59230

* update docs

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Add Laravel Boost MCP server to upgrade guide note

* Fix OpenCode casing in upgrade guide

* Update upgrade.md

* Update upgrade.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
laravel#11103)

* Update installation instructions for Laravel Boost to include support for Laravel 13

* feat: Update Boost can be installed

* Update ai.md

* Update installation.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
AL-Hareth and others added 28 commits April 18, 2026 08:26
* Added exmples to 'host' request properties

* Update requests.md

updated HTTP requests back to the correct spelling

* Update requests.md

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Add Cloudflare email setup

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
* Document MCP Apps support

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
…traints (laravel#11174)

The dimensions validation rule supports min_ratio and max_ratio
constraints as well as minRatio, maxRatio, and ratioBetween fluent
methods, but these were missing from the documentation.
to add a touch of consistency, only document the array based validation rule definitions. the arrays definitions _always_ work, while there are specific situations (regex, fluent rules) where the delimited strings struggle. the DX of the 2 options is similar, although I'd argue in favor of true arrays since with longer ones we can get IDE niceties like autoformatted multiline.

By documenting it this way it will encourage new users to the FW to only use the array style.

- __always__ use arrays for rule defintions
- __never__ use pipe (`|`) delimited strings for rule definitions
- standardize `$validatedData` variable name to `$validated`
Now there's three starter kits, and not two, it doesn't make sense to say "Both of these starter kits..."
Signed-off-by: ajiho <lujiahao@88.com>
* update fortify docs

* add config note

* update fortify.md

* minor formatting

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
This part was wrongly updated on this PR : https://github.com/laravel/docs/pull/11102/changes

[Support policy](https://laravel.com/docs/13.x/releases#support-policy) refers to `12.x` for oldest version which allow bug fixes.
This commit orders all of our polymorphic table columns with `*_type` first and `*_id` second.

This matches how the columns are actually generated by the migration helper methods:

```php
$table->nullableulidMorphs('nullableulidMorphs');
$table->ulidMorphs('ulidMorphs');
$table->uuidmorphs('uuidmorphs');
$table->nullableUuidMorphs('nullableUuidMorphs');
$table->morphs('morphs');
$table->nullableMorphs('nullableMorphs');
```

results in:

- nullableulidMorphs_type
- nullableulidMorphs_id
- ulidMorphs_type
- ulidMorphs_id
- uuidmorphs_type
- uuidmorphs_id
- nullableUuidMorphs_type
- nullableUuidMorphs_id
- morphs_type
- morphs_id
- nullableMorphs_type
- nullableMorphs_id

This will help encourage consistency between morph columns generated by the helpers, and any the user may manually define.

I think it also makes sense from a readability standpoint; Comment 5, Tag 17, etc.
Added examples for clickWhenVisible and clickWhenEnabled methods in Dusk documentation.
@hectorgrecco
Copy link
Copy Markdown
Author

Closing — reopening against 13.x branch.

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.