From 66675c1282e1af157c8b68dfaa7590556a2e8f78 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 12 May 2023 17:58:18 +0100 Subject: [PATCH 1/2] Clarifies issues with name attribute on slots --- blade.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blade.md b/blade.md index 73b5ecdc825..7acdfbc7828 100644 --- a/blade.md +++ b/blade.md @@ -934,6 +934,9 @@ All of the attributes that are not part of the component's constructor will auto > **Warning** > Using directives such as `@env` within component tags is not supported at this time. For example, `` will not be compiled. +> **Warning** +> Because of limitations on how slots are named, it is not possible to use `name` as the first attribute when specifying attributes. If you want to pass this attribute to the underlying component, you must provide it as the second or third element. For instance, you can use `...`. + #### Default / Merged Attributes From 887a4bf073d3a110ff3535eb0117e588d7d40eb5 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 12 May 2023 18:01:36 +0100 Subject: [PATCH 2/2] Update blade.md --- blade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade.md b/blade.md index 7acdfbc7828..17692d5da38 100644 --- a/blade.md +++ b/blade.md @@ -935,7 +935,7 @@ All of the attributes that are not part of the component's constructor will auto > Using directives such as `@env` within component tags is not supported at this time. For example, `` will not be compiled. > **Warning** -> Because of limitations on how slots are named, it is not possible to use `name` as the first attribute when specifying attributes. If you want to pass this attribute to the underlying component, you must provide it as the second or third element. For instance, you can use `...`. +> Because of limitations on how slots are named, it is not possible to use `name` HTML attribute as the first attribute when passing attributes to the underlying component. If you want to pass this attribute, you must provide it as the second or third element. For instance, you can use `...`. #### Default / Merged Attributes