I have HTTP PUT API but cannot retrieve from the request. Input::all() returns empty. Can you share how to do it? I confirmed that $request had form-data.
public function update(Request $request, $id)
{
Log::info(Input::all()); // empty
Log::info($id); // 1001
Log::info($request);
}
$request ->
local.INFO: PUT /v1/shops/1001 HTTP/1.1
.
.
.
------WebKitFormBoundary2B26VoCplFAB8W36
Content-Disposition: form-data; name="item_id"
9001
------WebKitFormBoundary2B26VoCplFAB8W36
Content-Disposition: form-data; name="name"
tokyo
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/24FkLCo
via IFTTT
Aucun commentaire:
Enregistrer un commentaire