toeknee
Relationship with a relationship after create?
I need to add some relationship data to a relationships relationship. For example:
Order -> products -> customisations
In a duplicate order function, We have the repeater loading which loads the products relationship, I want to then clone over the customisations relationship. We don't seem to be able to use mutateRelationshipDataBeforeCreating to assign the relationship values.. and theres no record at this state, it's almost like we need an afterCreate function on a repeater relationship?
7 replies
New relationmanagers not registering?
I am having a stupid moment, I have added relation manager, it's tab renders but on clicking we get
Unable to find component: -relation-manager
But it exists, tried clearing cache etc. It'll be something stupid I am sure but it's one of those days
4 replies
RelationshipManager Table Ordering
Is there a method I am missing, to allow sorting the table by an order of a relationships relationship?
For example, we have a resource showing a list of rows, which then shows data from a relationship, then shows more data from that relationships relationship and I want to order by the order column in the end relaitonship so:
Items -> Sub Item -> sub data.order
7 replies
Form Attach action?
We use relation manager, and relationships but how can we have an attach action within a form? We need to allow attaching upto 3 additional records being on indiviudals i.e. part a, b and c form a parts table.... I had hoped for a type of relationship but I am not getting my head around how we can handle it within the need for a relation manager.
2 replies
Adding styles to a plugin?
We can include a stylehsheet and that works fine, but how are you building in native filamentphp classes into the plugin? Would you not build them in an expect the standard app build to load in the css and only use the .css for custom classes?
8 replies
Prevent Modal Closing?
Within the tables component in a livewire component we have an action, that action renders a form with a view field. The view field renders a button with:
This works well, but on downloading the document the modal / sliderOver is closed. Is there a method we can place in the downloadAttachment function to prevent the modal/slideOver closing?
5 replies
SpatieMediaLibrary not uploading files Livewire Component?
Using The interacts with media on the model, and then in the form component we have the standard type of save:
Looking at the network requests we are having files uploaded to upload-file?expires=3423232342332
any suggestions? Using S3 no errors, not logs. Just no files saved, used to work in V2.
15 replies