moaaz_m_f
moaaz_m_f
FFilament
Created by moaaz_m_f on 10/3/2023 in #❓┊help
Required "Select" forms component saving empty data.
that's why I added the default so to prevent this issue incase the user forgot to choose.
5 replies
FFilament
Created by moaaz_m_f on 10/3/2023 in #❓┊help
Required "Select" forms component saving empty data.
I actually was commenting one and trying the other but still
5 replies
FFilament
Created by vahnmarty on 6/24/2023 in #❓┊help
Select::searchable() is not reactive?
can you share this function
us_states()
us_states()
11 replies
FFilament
Created by benshawuk on 6/24/2023 in #❓┊help
Is there a way to "stack" filters?
8 replies
FFilament
Created by jkbcoder on 6/24/2023 in #❓┊help
page header
4 replies
FFilament
Created by Mingo on 6/24/2023 in #❓┊help
add timestamp in form
this is one way of doing it make sure you have the
$table->timestamps();
$table->timestamps();
in your table migration i usually add created_by and updated_by also.
->schema([
Forms\Components\Placeholder::make('created_at')
->label('Created at')
->content(fn (Order $record): ?string => $record->created_at?->diffForHumans()),

Forms\Components\Placeholder::make('updated_at')
->label('Updated at')
->content(fn (Order $record): ?string => $record->updated_at?->diffForHumans()),
])
->columns(1)
->hidden(fn (?Order $record) => $record === null),
->schema([
Forms\Components\Placeholder::make('created_at')
->label('Created at')
->content(fn (Order $record): ?string => $record->created_at?->diffForHumans()),

Forms\Components\Placeholder::make('updated_at')
->label('Updated at')
->content(fn (Order $record): ?string => $record->updated_at?->diffForHumans()),
])
->columns(1)
->hidden(fn (?Order $record) => $record === null),
10 replies
FFilament
Created by Kiran Timsina on 6/20/2023 in #❓┊help
Help accessing parent form field value
#✅┊rules Kindly add your code this way
public function myCodeGoesHere(){};
public function myCodeGoesHere(){};
5 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
If you can share the code that is giving you zero also.
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
let me know if works
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
I will update the trick soon to include this option and make it more clear for the relationship tables The idea is after adding the view dont add the rest of the code in the
instead just add the rest of code including
instead just add the rest of code including
getTableContentFooter()
in the
in the
ExampleRelationManager``` class file which has the table and form. that will do.
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
9 replies
FFilament
Created by Daniel Reales on 6/10/2023 in #❓┊help
How to show in a column from table sum from relationship
6 replies
FFilament
Created by Vp on 6/8/2023 in #❓┊help
Filter form is very weird
sure please
11 replies
FFilament
Created by Vp on 6/8/2023 in #❓┊help
Filter form is very weird
take note this issue will not happen if you click the "X" next to the filter this will happen only if you try to remove all filters at once from the X button on the right side.
11 replies
FFilament
Created by Vp on 6/8/2023 in #❓┊help
Filter form is very weird
it would be better if we add this in github issues if it's not there.
11 replies
FFilament
Created by Vp on 6/8/2023 in #❓┊help
Filter form is very weird
I think I found the issue it's in the core. go to:
vendor\filament\tables\src\Concerns\HasFilters.php
vendor\filament\tables\src\Concerns\HasFilters.php
then find a function called
(filters plural)

replace
(filters plural)

replace
$this->updatedTableFilters();
with the below function
with the below function
$this->resetTableFiltersForm();``` let me know if it works.
11 replies