https://twill.io logo
Programmatically updating Twill records
# ❓questions
c
Custom front end form Hello, I'm currently busy making a site that has some front-end content editing in addition to Twill. I was wondering if you had any example code for doing an update (linking images, etc.) from custom controllers. I guess I need to import
use A17\TwillRepositories
and then call the functions like this:
app(ArtistRepository::class)->update(???);
. I'm mostly stuck on how to give the right arguments to the functions, how to handle uploading images, adding relationships, etc. Thanks for you help, beautiful morning
i
Hi @Constant Variable the easiest way to find out what to give to update is inspecting form submissions on your twill form
c
Ok, thank youy @ifox indeed this is a good starting point, I will analyse this.