robsontenorio / mary

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

i'm using ulid as user primary id, and this is appear, #628

Open elnasnato opened 1 week ago

elnasnato commented 1 week ago

maryUI version

1.35.8

daisyUI version

4.12.10

Livewire version

3.5.6

What browsers are affected?

Firefox

What happened?

❌ Don't paste your entire component code, it is hard to debug it.

✅ Paste only the MINIMAL code that reproduces your issue (PHP/BLADE).

❌ Don't paste code as screenshot.

✅ Paste code as formatted markdown.

PHP

it is what file inside
<!-- EXPANSION SLOT -->
                    @if($expandable)
                        <tr wire:key="{{ $uuid }}-{{ $k }}--expand" class="!bg-inherit" :class="isExpanded({{ $getKeyValue($row, 'expandableKey') }}) || 'hidden'">
                            <td :colspan="colspanSize">
                                {{ $expansion($row) }}
                            </td>
                        </tr>
                    @endif

and it comes from terminal problems tab
[{
    "resource": "/d:/site/insys/storage/framework/views/f087703367621e15709f8e3a4b525fab.blade.php",
    "owner": "_generated_diagnostic_collection_name_#2",
    "code": "PHP2014",
    "severity": 8,
    "message": "Syntax error: unexpected token '{'",
    "source": "PHP",
    "startLineNumber": 195,
    "startColumn": 108,
    "endLineNumber": 195,
    "endColumn": 109
}]

HTML/Blade

and how i use it in livewire component
@php
    $users = App\Models\User::query()->take(5)->get();

    $headers = [
        ['key' => 'id', 'label' => '#'],
        ['key' => 'name', 'label' => 'Nice Name'],
    ];
@endphp

<div>
    <x-table :headers="$headers" :rows="$users" striped @row-click="alert($event.detail.name)" />
</div>
robsontenorio commented 4 days ago

What appears ? Please, send a screenshot.

Your example don’t even use expansion feature.