© 2026 Hedgehog Software, LLC

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

Adding a "hasOne" relationship in the resource view.

Hello there, from the docs I see there is the option to create a Layout form components that works for the hasOne, but it says: " If the metadata record does not exist, it is automatically created." And i don't want it to be created...

So how would I show a "hasOne" record, same way as it the Relation managers shows the related records under the view form?

I have to models: Quote and Document, the relation between them is 1:1, and I want to show info of the document in the Quote view, but only if its created previously, I dont wanna it to create auto

Thank you.
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

Form HasOne relationship
FilamentFFilament / ❓┊help
3y ago
Show dedicated resource view for a relationship
FilamentFFilament / ❓┊help
3y ago
Optionally adding a morthOne relationship for the resource form
FilamentFFilament / ❓┊help
3y ago
How implement a filter in a filament resource that uses the attribute of a HasOne relationship
FilamentFFilament / ❓┊help
3y ago