I'm trying to update a specified resource in my laravel application using data submitted through a classic form, using PUT/POST method:
Model::find($id)->update($request->all());
This works fine, except the case where I submit the form with an empty input. Then I'll have all values in my request except the empty input's data, so the updating process isn't complete.
I know I can check if each request parameter exists and if it doesn't, assign it a NULL value but I'm trying to avoid that and I want to know if Laravel retrieves empty data that could be access through Request.
$request->all()only retrieves populated form data