Skip to content

Commit

Permalink
Add Conditionable trait to ComponentAttributeBag (#39861)
Browse files Browse the repository at this point in the history
* Add Conditionable trait to ComponentAttributeBag

* Update ComponentAttributeBag.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
usernotnull and taylorotwell committed Dec 1, 2021
1 parent 6d9cb12 commit c8319a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/View/ComponentAttributeBag.php
Expand Up @@ -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.
Expand Down

0 comments on commit c8319a8

Please sign in to comment.