classes/Helpers.php
public function filteredInput()
    {
        $files = $this->arrayFilterRecursive(Request::file());
        $input = array_replace_recursive(Request::input(), $files);

        return Library\Utils\Collection::nullEmpties($input);
    }
public function filteredInput()
    {
        $files = $this->arrayFilterRecursive(Request::file());
        $input = array_replace_recursive(Request::input(), $files);

        return Library\Utils\Collection::nullEmpties($input);
    }
public function filteredInput ( ) { $ files = $ this -> arrayFilterRecursive ( Request :: file ( ) ) ; $ input = array_replace_recursive ( Request :: input ( ) , $ files ) ; return Library \ Utils \ Collection :: nullEmpties ( $ input ) ; }
Get all input but filter out empty file fields. This prevents empty file
fields from overriding existing files on a model. Using this assumes that
we are filling a model and then validating the model attributes.

@return array
Get all input but filter out empty file fields . This prevents empty file fields from overriding existing files on a model . Using this assumes that we are filling a model and then validating the model attributes .