private function errorResponse($error, $notices = [], $errorCode = 400)
    {
        if (is_array($error)) {
            json_encode($error);
        }
        $payload = ['error' => $error];
        if (!empty($notices)) {
            $payload['notices'] = $notices;
        }

        return \Response::json($payload, $errorCode);
    }
private function errorResponse($error, $notices = [], $errorCode = 400)
    {
        if (is_array($error)) {
            json_encode($error);
        }
        $payload = ['error' => $error];
        if (!empty($notices)) {
            $payload['notices'] = $notices;
        }

        return \Response::json($payload, $errorCode);
    }
private function errorResponse ( $ error , $ notices = [ ] , $ errorCode = 400 ) { if ( is_array ( $ error ) ) { json_encode ( $ error ) ; } $ payload = [ 'error' => $ error ] ; if ( ! empty ( $ notices ) ) { $ payload [ 'notices' ] = $ notices ; } return \ Response :: json ( $ payload , $ errorCode ) ; }
Upload multiple files.

@param       $error
@param array $notices
@param int   $errorCode

@return \Illuminate\Http\JsonResponse
Upload multiple files .