OP, try dd($request->input('id'); $request->has('id')); and post it here.
Checking if a request parameter exists and is not empty
I have been logging request parameter checks, ht all are false.
this is my check:
if( $request->exists('id') ){ Log::info( 'request->exists(id) true' ); } else { Log::info( 'request->exists(id) false' ); }
if( $request->filled('id') ){ Log::info( 'request->filled(id) true' ); } else { Log::info( 'request->filled(id) false' ); }
if( $request->has('id') ){ Log::info( 'request->has(id) true' ); } else { Log::info( 'request->has(id) false' ); }
Log::info( 'Actual $request->id = ' . $request->id );
and this is the log file:
[2018-08-25 15:01:38] local.INFO: request->exists(id) false [2018-08-25 15:01:38] local.INFO: request->filled(id) false [2018-08-25 15:01:38] local.INFO: request->has(id) false [2018-08-25 15:01:38] local.INFO: Actual $request->id = 3
So, the $request->id has a value but all checkf return false.
What am i doing wrong?
Please or to participate in this conversation.