class ComponentSlot implements Htmlable, Stringable (View source)
| ComponentAttributeBag | $attributes | The slot attribute bag. | |
| protected string | $contents | The slot contents. |
| void | __construct(string $contents = '', array $attributes = [])
Create a new slot instance. | |
| $this | withAttributes(array $attributes)
Set the extra attributes that the slot should make available. | |
| string | toHtml()
Get the slot's HTML string. | |
| bool | isEmpty()
Determine if the slot is empty. | |
| bool | isNotEmpty()
Determine if the slot is not empty. | |
| bool | hasActualContent(callable|string|null $callable = null)
Determine if the slot has non-comment content. | |
| string | __toString()
Get the slot's HTML string. |
Create a new slot instance.
Set the extra attributes that the slot should make available.
Get the slot's HTML string.
Determine if the slot is empty.
Determine if the slot is not empty.
Determine if the slot has non-comment content.
Get the slot's HTML string.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/View/ComponentSlot.html