Which controller takes care about the update method?
Hi guys,
I have written a custom field for my Laravel Nova application. So far so good, the fronted is looking good so far and working. I have written an editor which is capable to upload images within the editor.
Now I want to save the content and image when hitting the "Save changes" Button in Nova. Where Do I have to start, where can I invoke this process to customize it?
I haven't found any information about this online so far...
Not even in the docs.
@frazecolder I think you need to read the Nova docs a bit more. You should be using the fields Nova gives you to save content to your database; not overriding any of Nova’s controllers.
Hi @martinbean
I have fully read the docs. The problem is, I need to handle this problem in my backend. Because this is where I save my photos. It doesn't say how I can invoke this process...
@martinbean maybe its better to write you what I want to do. I have written an editor where you can upload images within your text. These images will be placed as base64 images within the text. My goal now is to modify the update method in order to extract the base64 string, save it as an image to my server and replace the base64 string with an <img> tag and set the image url as src.
This is how I my users are using the editor in on my website. But admins should also be able to edit those texts and images. Thats why I need to implement such a editor in my nova panel as well. How would you do that?