javalava6985
javalava6985
FFilament
Created by javalava6985 on 12/9/2024 in #❓┊help
Use ID on newly created Model from ->createOptionAction
Yeah, i was in a rush so i decided to take the easy way out bu tin the end it backfired. Should've gone with an observer in the first place. I refactored to an observer. Thanks for the help.
13 replies
FFilament
Created by javalava6985 on 12/9/2024 in #❓┊help
Use ID on newly created Model from ->createOptionAction
Any idea how i would het the $record in the after() method or are there any other ways?
13 replies
FFilament
Created by javalava6985 on 12/9/2024 in #❓┊help
Use ID on newly created Model from ->createOptionAction
Yeah, ill try to explain it in more detail. I have a form on my Project Model. This form has a select option to select a company to be associated with it. It also has a ->createOptionForm to create a new Company Model. On my regular Company model i use afterCreate to send the form data over to an api, retrieve an ID and finally, I store all the form data + the newly retrieved ID on the Company. This works fine but i can't seem to get this working from within the ->createOptionForm() method. I hope i'm being clear.
13 replies
FFilament
Created by javalava6985 on 12/9/2024 in #❓┊help
Use ID on newly created Model from ->createOptionAction
Also, i need form data in the method i use afterwards. Don't know how to get the form data to the observer.
13 replies
FFilament
Created by javalava6985 on 12/9/2024 in #❓┊help
Use ID on newly created Model from ->createOptionAction
Even though i'm not trying to do anything on the relationship? I just want to do something with the data of the newly created company.
13 replies
FFilament
Created by javalava6985 on 4/14/2023 in #❓┊help
Typing in date/timepicker
Yeah, i can imagine. Thanks anyway for the quick reply. Appreciated and cheers
8 replies
FFilament
Created by javalava6985 on 4/14/2023 in #❓┊help
Typing in date/timepicker
Ahhh thats what i thought but hoped that maybe i missed something. Thanks
8 replies