Is there a way to do something like this in the controller?
$request->input(['new_field_name' => 'new_val']);
I've googled a lot, but the only thing I've found was related to Laravel's 4.x formatInput method, which has been removed from the 5.x
I need to inject a specific field in the $request when the request has passed the validation, then save the new record in the db.
Any clue? Thanks to everyone!
$inputs = $request->all();then$inputs['new_field_name'] = 'new_val'!