© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
5 replies
milo

2 DB objects for the same resource

I have two database objects:
• mts_tbl_products_main (a table)
• v_products_main (a view)

Both have a common field: id (product ID).

In my ProductResource.php:
• For public static function table(Table $table): Table, I want to use v_products_main
• For public static function form(Form $form): Form, I want to use mts_tbl_products_main

Is this possible?

Because the view contains much more detailed fields that I want to display in the table, but for editing/creating I only want to use the base table.
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

2 resource columns from same db column
FilamentFFilament / ❓┊help
3y ago
2 Different Tables For The Same Resource
FilamentFFilament / ❓┊help
2y ago
Different Form in the same resource
FilamentFFilament / ❓┊help
2y ago
Filament Shield: 1 Same Model in 2 Filament Resource
FilamentFFilament / ❓┊help
16mo ago