From 0eddefb6f6e5073143e0618fb457f39505d0b12b Mon Sep 17 00:00:00 2001 From: Martin H Date: Thu, 4 Jul 2024 02:05:30 +0800 Subject: [PATCH] add v3.0-stable support --- README.md | 2 +- composer.json | 4 ++-- resources/views/table-repeatable-entry.blade.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f57f593..e6710db 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/icetalker/filament-table-repeatable-entry/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/icetalker/filament-table-repeatable-entry/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) [![Total Downloads](https://img.shields.io/packagist/dt/icetalker/filament-table-repeatable-entry.svg?style=flat-square)](https://packagist.org/packages/icetalker/filament-table-repeatable-entry) -This is a Filament InfolistS Component, use for display RepetableEntry as a table. +This is a Filament Infolists Component, use for display RepetableEntry as a table. In case you are using [TableRepeater]() instead of RelationManager. ## Installation diff --git a/composer.json b/composer.json index 718ceed..d55b8cd 100644 --- a/composer.json +++ b/composer.json @@ -17,9 +17,9 @@ ], "require": { "php": "^8.1", - "filament/infolists":"3.0-stable", + "filament/infolists":"^3.0||3.0-stable", "spatie/laravel-package-tools": "^1.14.0", - "illuminate/contracts": "^10.0" + "illuminate/contracts": "^10.0|^11.0" }, "require-dev": { "laravel/pint": "^1.0", diff --git a/resources/views/table-repeatable-entry.blade.php b/resources/views/table-repeatable-entry.blade.php index 51ac271..c009a37 100644 --- a/resources/views/table-repeatable-entry.blade.php +++ b/resources/views/table-repeatable-entry.blade.php @@ -30,18 +30,18 @@ class="gap-4" @if($showIndex)@endif @foreach($getColumnLabels() as $label) - {{ $label['name'] }} + {{ $label['name'] }} @endforeach @foreach ($getChildComponentContainers() as $item) - @if($showIndex){{ $loop->index }}@endif + @if($showIndex){{ $loop->index }}@endif @foreach($item->getComponents() as $component) {{ $component }}