private function inputsArray($jsonInput)
    {
        if ($jsonInput) {
            $inputs = Input::json();
        } else {
            $inputs = Input::all();

            // Don't send the token back
            unset($inputs['_token']);

            foreach ($inputs as $key => $value) {
                if (Input::file($key)) {
                    unset($inputs[$key]);
                }
            }
        }

        return $inputs;
    }
private function inputsArray($jsonInput)
    {
        if ($jsonInput) {
            $inputs = Input::json();
        } else {
            $inputs = Input::all();

            // Don't send the token back
            unset($inputs['_token']);

            foreach ($inputs as $key => $value) {
                if (Input::file($key)) {
                    unset($inputs[$key]);
                }
            }
        }

        return $inputs;
    }
private function inputsArray ( $ jsonInput ) { if ( $ jsonInput ) { $ inputs = Input :: json ( ) ; } else { $ inputs = Input :: all ( ) ; // Don't send the token back unset ( $ inputs [ '_token' ] ) ; foreach ( $ inputs as $ key => $ value ) { if ( Input :: file ( $ key ) ) { unset ( $ inputs [ $ key ] ) ; } } } return $ inputs ; }
Get the inputs as an array.

@param bool $jsonInput JSON or not

@return array
Get the inputs as an array .