@WebKenth @EventFellows I'm afraid to say, I know so little about this Spark stuff that I don't really know which of you is right. It could be that you both are.
To express more specifically what I'm after doing is creating a form that will allow a user to upload a product to a database. This product will have some attributes that are entered via text fields and the product should also be able to have an image associated with it.
The user should be able to see their uploaded products in a simple table that displays the products' attributes and a thumbnail of the uploaded image.
@WebKenth If I understand you correctly, what I should be trying to build in the blade is a form with, say, two fields for the text attributes plus a button for the image and a submit button. The image will effectively be submitted via a route specified in the js which will show a preview of the image to be uploaded. Then the submit button will collect all the data and ascribe it to the appropriate table in the database, associated with the correct user.
Is that right?
@EventFellows What I think you've encouraged me to do is virtually the same thing.
Is that right?
If I've misunderstood, then, I apologise, I'm still pretty new to this. But, if either of you, or anybody else, could point me towards a tutorial on how to include a photo upload field in a basic form - complete with code examples - within Laravel Spark, that would be most appreciated.
With kind regards,
Mark