In my controller I am using imagemagick to manipulate user uploaded image, then I store it in the public folder. The user sends the image along other data from a form. What I want to do is send the data as json to the ajax request and I do it like this:
return response()->json($Model);
I also want to send the $image
I created with imagemagick along the data so that I don't have to make a server call from the javascript to download the image again. I have it there so how can I send that too?