© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Asmit

Add table name on edit page query

select
  "products".*
from
  "products"
  inner join "categories" on "products"."category_id" = "categories"."id"
where
  "id" = 8
  and "categories"."type_id" = 1
  and "products"."deleted_at" is null
limit
  1
select
  "products".*
from
  "products"
  inner join "categories" on "products"."category_id" = "categories"."id"
where
  "id" = 8
  and "categories"."type_id" = 1
  and "products"."deleted_at" is null
limit
  1

Here I use scope to fetch product for that types,
The
id
id
Ambiguous issue is occur while try to edit and view the individual product,
Is there any way to add table name on where
id
id
clause on filament to fetch individual record.
like
select
  "products".*
from
  "products"
  inner join "categories" on "products"."category_id" = "categories"."id"
where
  "products.id" = 8
  and "categories"."type_id" = 1
  and "products"."deleted_at" is null
limit
  1
select
  "products".*
from
  "products"
  inner join "categories" on "products"."category_id" = "categories"."id"
where
  "products.id" = 8
  and "categories"."type_id" = 1
  and "products"."deleted_at" is null
limit
  1
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

Table on resource edit page?
FilamentFFilament / ❓┊help
3y ago
Add table on create page
FilamentFFilament / ❓┊help
2y ago
Custom table on resource edit page
FilamentFFilament / ❓┊help
2y ago
Add Edit action on View page
FilamentFFilament / ❓┊help
2y ago