I have one middleware, which merges customerId
to each incoming request.
if ( ! $request->has('customerId')) {
$request->merge(['customerId' => auth()->user()->userId]);
}
When I'm fetching all input data using $request->all()
, It's just works fine. If $request
is of type Illuminate\Http\Request
.
But if $request
is of type App\Http\Requests
then I can't get customerId
while fetching all data using $request->all()
.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community