devfaysal
devfaysal
FFilament
Created by guitarnerd_ on 8/3/2023 in #❓┊help
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:
$medication = Medication::first();
dd($medication->medication_variation);
$medication = Medication::first();
dd($medication->medication_variation);
5 replies
FFilament
Created by Travis on 8/2/2023 in #❓┊help
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
FFilament
Created by devfaysal on 7/29/2023 in #❓┊help
Conflict with money() from akaunting/laravel-money
I am not suggesting it for V2. If it's not in V3, then it's great. I was not aware that its getting removed in V3. thank you for the info.
6 replies
FFilament
Created by devfaysal on 7/29/2023 in #❓┊help
Conflict with money() from akaunting/laravel-money
as a global helper function so that it can be used anywhere easily. The package laravel-money also defined the money function in similar way.
6 replies
FFilament
Created by MohamedSabil83 on 7/13/2023 in #❓┊help
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

public function mount()
{
$this->form->fill();
}

public function mount()
{
$this->form->fill();
}
5 replies