robsontenorio / mary

Laravel Blade UI Components for Livewire 3
https://mary-ui.com
Other
990 stars 117 forks source link

Table: add `$loop` to `@scope` (breaking change) #467

Closed robsontenorio closed 3 months ago

robsontenorio commented 4 months ago

Closes #466

Breaking change, for good.

BEFORE ($this->loop->index)

<x-table ...>
    @scope('cell_name', $user)
        ({{  $this->loop->index }}) {{ $user->name }}
    @endscope
</x-table>

AFTER ($loop->index)

<x-table ...>
    @scope('cell_name', $user)
        ({{  $loop->index }}) {{ $user->name }}
    @endscope
</x-table>