Convert payload to json in laravel
I get a form data in Laravel
$request->getContent();
Result is:
"""
------WebKitFormBoundaryNBoGTqDMmoBbVxmNrn
Content-Disposition: form-data; name="avatar"rnrn data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...AAABBESAIAgQgIAEERIAACCCAkAQBAhA QAIIiQAAEGEBAAg4H//+z90ysSjp0MzewAAAABJRU5ErkJggg==rn------WebKitFormBoundaryNBoGTqDMmoBbVxmN--rn"""
How can I parse it to json in laravel?
from Laravel Questions and Answers https://laravelquestions.com/laravel/convert-payload-to-json-in-laravel/
via Lzo Media
No comments:
Post a Comment