Hotcat
Hotcat
FFilament
Created by Meymink on 11/1/2023 in #❓┊help
allUsers error: Call to a member function getKey() on null
Do this way: Tables\Columns\TextColumn::make('users_count') ->searchable() ->sortable() -> formatStateUsing(fn($state) => $state+1) ->counts('users'),
7 replies
FFilament
Created by Meymink on 11/1/2023 in #❓┊help
allUsers error: Call to a member function getKey() on null
allUsers must return relationship class not a collection
7 replies
FFilament
Created by kamilzeliasz on 9/4/2023 in #❓┊help
Multi-tenancy by subdomain
10 replies
FFilament
Created by H.Bilbao on 9/23/2023 in #❓┊help
How yo force https all Filament routes
Or to configure your server Apache/Nginx
14 replies
FFilament
Created by H.Bilbao on 9/23/2023 in #❓┊help
How yo force https all Filament routes
Probably you need to config laravel not filament. https://stackoverflow.com/a/44442699
14 replies
FFilament
Created by Vincent on 8/29/2023 in #❓┊help
TextColumn placeholder empty
Probably placeholder applies after formatStateUsing, since there always remains a dollar sign, so it cannot be considered empty and the placeholder does not display
15 replies
FFilament
Created by Vincent on 8/29/2023 in #❓┊help
TextColumn placeholder empty
Or this one:
TextColumn::make('cost_usd')
->placeholder('In progress')
->label('Cost')
->money('usd'),
TextColumn::make('cost_usd')
->placeholder('In progress')
->label('Cost')
->money('usd'),
15 replies
FFilament
Created by Vincent on 8/29/2023 in #❓┊help
TextColumn placeholder empty
I’m not sure why the placeholder has no effect, but try this way:
TextColumn::make('cost_usd')
->label('Cost')
->formatStateUsing(
fn (?float $state): string => $state ? '$' . number_format($state, 2) : 'In progress'
),
TextColumn::make('cost_usd')
->label('Cost')
->formatStateUsing(
fn (?float $state): string => $state ? '$' . number_format($state, 2) : 'In progress'
),
15 replies
FFilament
Created by Omar on 8/28/2023 in #❓┊help
How can I make it work?
Use ->hidden( instead of ->when(
13 replies
FFilament
Created by Oumaima on 8/28/2023 in #❓┊help
live is too slow
13 replies
FFilament
Created by Oumaima on 8/28/2023 in #❓┊help
live is too slow
also please share your code
13 replies
FFilament
Created by Oumaima on 8/28/2023 in #❓┊help
live is too slow
Please check the network tab in devtools of your browser, how long does the request take?
13 replies
FFilament
Created by Hotcat on 8/28/2023 in #❓┊help
Move filters to the top
Solved in this way:
return $table
// ->heading(__('admin.widgets.top_sales'))
->header(new HtmlString(
'<h3 class="fi-ta-header-heading text-base font-semibold leading-6 -mb-[29px] translate-y-4 sm:pl-6 pl-3">' .
__('admin.widgets.top_sales') .
'</h3>'
))
return $table
// ->heading(__('admin.widgets.top_sales'))
->header(new HtmlString(
'<h3 class="fi-ta-header-heading text-base font-semibold leading-6 -mb-[29px] translate-y-4 sm:pl-6 pl-3">' .
__('admin.widgets.top_sales') .
'</h3>'
))
6 replies
FFilament
Created by Hotcat on 8/28/2023 in #❓┊help
Move filters to the top
Good point 👍 I just thought it can be done programmatically.
6 replies