From c8319a898f72337e7567347cb07542dacfbe651f Mon Sep 17 00:00:00 2001 From: John F <15612814+usernotnull@users.noreply.github.com> Date: Wed, 1 Dec 2021 15:13:07 +0200 Subject: [PATCH] Add Conditionable trait to ComponentAttributeBag (#39861) * Add Conditionable trait to ComponentAttributeBag * Update ComponentAttributeBag.php Co-authored-by: Taylor Otwell --- src/Illuminate/View/ComponentAttributeBag.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index 3efb8c6b7966..255d16454127 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -8,12 +8,13 @@ use Illuminate\Support\Arr; use Illuminate\Support\HtmlString; use Illuminate\Support\Str; +use Illuminate\Support\Traits\Conditionable; use Illuminate\Support\Traits\Macroable; use IteratorAggregate; class ComponentAttributeBag implements ArrayAccess, Htmlable, IteratorAggregate { - use Macroable; + use Conditionable, Macroable; /** * The raw array of attributes.