cwbmuller
cwbmuller
FFilament
Created by cwbmuller on 8/17/2023 in #❓┊help
Store the full file upload URL not just the filesystem extension
I am trying to use the file upload field to store an image url to a model image column. I want the full asset url to be stored to the database, not just the extension of the filesytem path. The file is being uploaded fine but when saving to the database only the extension is being saved, not full path. Am I missing something or do I need to hydrate the column everytime?
11 replies
FFilament
Created by cwbmuller on 8/8/2023 in #❓┊help
Discover panel widgets without adding to primary dashboard page
I am trying to discover a number of components (that are used on custom pages) in a panel. However, if I use discoverWidgets they are automatically registered to the landing dashboard page no matter what I set in the ->widgets() or in the getHeaderWidgets() of the main dashboard. If I don't add the parent path of panel widgets to the discoverWidgets then the other pages cannot find the widget components. I've tried to access the discoverComponents() method directly to register the widgets, but it is a protected. Please help 🙏
13 replies