© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
abdulhameed

consume data from service class to widget table

Hello, I have this problem. I have a service class that has a different logic inside it, and I want to display the data returned from it in the widget table in Filamentt, but I have had several problems, knowing that I use the Postgresql database. Is there a way to do this? public static function getActiveUsers()
{

return PurchaseItem::where('via_package', null)
->with('user')
->whereMonth('created_at',7)
->whereYear('created_at',2023)
->select('user_id', \DB::raw('count(*) as total'))
->groupBy('user_id')
->orderBy('total', 'desc')
->limit(100)
->get(); #da
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to get filtered table data from widget class?
FilamentFFilament / ❓┊help
2y ago
How To Call Service To Retrieve Data Within Table Widget?
FilamentFFilament / ❓┊help
2y ago
How to pass data from cache to widget table?
FilamentFFilament / ❓┊help
13mo ago
Trying to populate data from the table to widget
FilamentFFilament / ❓┊help
2y ago