src/Watchers/RequestWatcher.php
private function input(Request $request)
    {
        $files = $request->files->all();

        array_walk_recursive($files, function (&$file) {
            $file = [
                'name' => $file->getClientOriginalName(),
                'size' => $file->isFile() ? ($file->getSize() / 1000).'KB' : '0',
            ];
        });

        return array_replace_recursive($request->input(), $files);
    }
private function input(Request $request)
    {
        $files = $request->files->all();

        array_walk_recursive($files, function (&$file) {
            $file = [
                'name' => $file->getClientOriginalName(),
                'size' => $file->isFile() ? ($file->getSize() / 1000).'KB' : '0',
            ];
        });

        return array_replace_recursive($request->input(), $files);
    }
private function input ( Request $ request ) { $ files = $ request -> files -> all ( ) ; array_walk_recursive ( $ files , function ( & $ file ) { $ file = [ 'name' => $ file -> getClientOriginalName ( ) , 'size' => $ file -> isFile ( ) ? ( $ file -> getSize ( ) / 1000 ) . 'KB' : '0' , ] ; } ) ; return array_replace_recursive ( $ request -> input ( ) , $ files ) ; }
Extract the input from the given request.

@param  \Illuminate\Http\Request  $request
@return array
Extract the input from the given request .