public static function requestHasFiles(Request $request) : bool
    {
        return ($request && $request->allFiles() && count($request->allFiles()) > 0);
    }
public static function requestHasFiles(Request $request) : bool
    {
        return ($request && $request->allFiles() && count($request->allFiles()) > 0);
    }
public static function requestHasFiles ( Request $ request ) : bool { return ( $ request && $ request -> allFiles ( ) && count ( $ request -> allFiles ( ) ) > 0 ) ; }
Check if the passed request has at least one file
@param Request $request
@return bool
Check if the passed request has at least one file