Skip to content

Commit

Permalink
Make ComponentAttributeBag Macroable (#33354)
Browse files Browse the repository at this point in the history
I am looking to PR a macro to Livewire to create a method on the ComponentAttributeBag that easily allows the user to do the following: <x-text-input wire:model="name" /> but I would need this class to be Macroable first.
  • Loading branch information
iAmKevinMcKee authored Jun 26, 2020
1 parent 2dc71a5 commit b5dd4a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/View/ComponentAttributeBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
use Illuminate\Support\Arr;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable;
use IteratorAggregate;

class ComponentAttributeBag implements ArrayAccess, Htmlable, IteratorAggregate
{
use Macroable;

/**
* The raw array of attributes.
*
Expand Down

0 comments on commit b5dd4a8

Please sign in to comment.