php - Laravel Merge / Replace Request - Files -
i've been using merge()
, replace()
methods on request
class. it's been working part, under impression merge()
add or override existing parameters, while replace()
wipes out parameters , adds new array of ones passed in. however, both work how imagined merge()
works. missing here?
also, there way merge()
or replace()
file, while still having hasfile()
method work? i'm doing adapting request api call. i'm receiving file in request 1 parameter, , remapping parameter name matches backend expecting. after using either method, request looks correct @ glance when dd($request->all())
, hasfile()
returns false.
i did digging http\illuminate\request
class, , think i'm finding issue file not being set $_files
. work intended suppose.
with being said, there particular way can accomplish i'm trying do?
Comments
Post a Comment