F
Filament10mo ago
hxnnxs

Don't show workers count

Hey, guys! I am writing the widget code, the widget shows 0 instead of the actual number of employees. Code
Stat::make('Number of workers', Company::find(Filament::getTenant())->first()->companyStuffs->count())
->chart([0 , 0.5, 1, 1.5])
->color('success'),
Stat::make('Number of workers', Company::find(Filament::getTenant())->first()->companyStuffs->count())
->chart([0 , 0.5, 1, 1.5])
->color('success'),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server