public static function getMimesAccept($resource)
    {
        $attachmentMimes = AttachmentMime::builder()->where('resource_id_019', $resource)->get();

        $index = 1;
        $mimes = null;
        foreach($attachmentMimes as $attachmentMime)
        {
            $mimes .= "'" . $attachmentMime->mime_019 . "'";

            if($index < count($attachmentMimes))
                $mimes .= ", ";

            $index ++;
        }

        return $mimes;
    }
public static function getMimesAccept($resource)
    {
        $attachmentMimes = AttachmentMime::builder()->where('resource_id_019', $resource)->get();

        $index = 1;
        $mimes = null;
        foreach($attachmentMimes as $attachmentMime)
        {
            $mimes .= "'" . $attachmentMime->mime_019 . "'";

            if($index < count($attachmentMimes))
                $mimes .= ", ";

            $index ++;
        }

        return $mimes;
    }
public static function getMimesAccept ( $ resource ) { $ attachmentMimes = AttachmentMime :: builder ( ) -> where ( 'resource_id_019' , $ resource ) -> get ( ) ; $ index = 1 ; $ mimes = null ; foreach ( $ attachmentMimes as $ attachmentMime ) { $ mimes .= "'" . $ attachmentMime -> mime_019 . "'" ; if ( $ index < count ( $ attachmentMimes ) ) $ mimes .= ", " ; $ index ++ ; } return $ mimes ; }
get string with mimes to getfile plugin

@param $resource
@return null|string
get string with mimes to getfile plugin