F
Filament12mo ago
LucaCvg

RepeatableEntry on InfoList dont show any data

Hi everyone (I'm a beginner)! I have a problem, perhaps trivial, when I try to use a "RepeatableEntry" and "TextEntry" inside an "InfoList" with a relationship with two tables called "wbes" and "earned_values". Inside the "WbeResource.php" write this code, but no data appears in the FE: Components\Section::make("REPEATER") ->schema([ RepeatableEntry::make('earnedvalue') ->schema([ TextEntry::make('id'), ]) ]) This is the "Wbe.php" model that contains a relationship: public function earnedvalue(): HasMany { return $this->hasMany(EarnedValue::class , 'id', 'wbe_id'); } This is the DB (earned_values) table: id (PK) practice_id (FK) practice_manager_id (FK) project_manager_id (FK) wbe_id (FK) name In your opinion, where am I going wrong? Thank you!
Solution:
Hi, trying several times I couldn't get the "RepeatableEntry" to work. However I solved it differently using Filament's "Relation Manager". I hope it can be useful to all those like me who are beginners. Un esempio qui: https://www.youtube.com/watch?v=ReCxgWsSTBA&t=231s
Code With Tony
YouTube
13 Filament Relation Manager - FilamentPHP V3 Tutorial
In this tutorial, we're diving into the world of Laravel Filament and its powerful tool, the Relation Manager. Managing relationships in your Laravel application is a crucial aspect, and Filament's Relation Manager simplifies this process. Join us as we explore how to efficiently handle relationships, define connections, and optimize your applic...
Jump to solution
1 Reply
Solution
LucaCvg
LucaCvg12mo ago
Hi, trying several times I couldn't get the "RepeatableEntry" to work. However I solved it differently using Filament's "Relation Manager". I hope it can be useful to all those like me who are beginners. Un esempio qui: https://www.youtube.com/watch?v=ReCxgWsSTBA&t=231s
Code With Tony
YouTube
13 Filament Relation Manager - FilamentPHP V3 Tutorial
In this tutorial, we're diving into the world of Laravel Filament and its powerful tool, the Relation Manager. Managing relationships in your Laravel application is a crucial aspect, and Filament's Relation Manager simplifies this process. Join us as we explore how to efficiently handle relationships, define connections, and optimize your applic...
Want results from more Discord servers?
Add your server