© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
alcmz

Creating a Custom Page that fetch data from another resource

I wanted to make a Sales Page that displays a simple sales tracker like Latest Sales, Total Sales, Total All Product Sales and more . I Planned it will be something like this:

1. The data will be fetch from the TradingProfiles as inside the TradingProfile model there are a column of Customer Details , Product and Price
2. The Product in TradingProfiles just keep integer value where it refers to Product Model for the value description like 0 = product0
3. I would like it to display the table for each sales in each product , i dont think we will have any edit action for each row probably just view button to view more details of the product etc etc
4. I will also add some widgets to track up certain general value such as Total All Product Sales etc etc

How should i achieve this ? I've been looking into using the CustomPage but i'm not sure what does the --resource will be is it TradingProfile?
php artisan make:filament-page SortUsers --resource=UserResource --type=custom
php artisan make:filament-page SortUsers --resource=UserResource --type=custom
image.png
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

Sending data from a custom page to another custom page
FilamentFFilament / ❓┊help
8mo ago
Createaction that opens a create page from another resource
FilamentFFilament / ❓┊help
2y ago
Extend a Resource List Page in another Resource Custom page
FilamentFFilament / ❓┊help
3y ago
custom page form from resource
FilamentFFilament / ❓┊help
11mo ago