devfaysal
How can I change the assumed table name in a relation manager?
How did you define the relationship in the Model?
If the relationship works fine, then Filament should work fine.
First check somewhere else that relationship working correctly.
The easiest way to test is the web.php in the routes folder.
define a test route and add code something like this:
5 replies
Getting wrong data for `count(*)` field 😢
Post everything in detail. If you do now show the code you have written, nobody will understand what is the problem you are facing.
In case you want to show the count of relationship data, then you can just use the count() method like this:
TextColumn::make('students_count')->counts('students'),
4 replies
Repeater `defaultItems()` not works
Add
$this->form->fill();
in the mount method. I was facing a similar issue recently and found the solution in GitHub: https://github.com/filamentphp/filament/discussions/2851
5 replies