Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Shopkeeper4 Comments Laravel Package

andchir/shopkeeper4-comments

View on GitHub
Deep Wiki
Context7

Reviews and ratings for Symfony4

Comments - screenshot #1

Can be used in Shopkeeper4 and in other applications using Symfony 4. Used DoctrineMongoDBBundle 4+.

Installing

composer config extra.symfony.allow-contrib true
composer require andchir/shopkeeper4-comments

Create classes for your entities using Andchir\CommentsBundle\Document\CommentAbstract and Andchir\CommentsBundle\Repository\CommentRepositoryInterface or use these examples:

vendor/andchir/shopkeeper4-comments/Document/Comment.php.dist
vendor/andchir/shopkeeper4-comments/Repository/CommentRepository.php.dist

Add to your twig template:

{% block stylesheets -%}
    {{ parent() }}
    <link href="{{ asset('bundles/comments/css/comments.css') }}" rel="stylesheet">
{% endblock -%}

Your block name may vary.

{% include '@Comments/Default/async.html.twig' with {'threadId': currentCategory.contentTypeName ~ '_' ~ currentId} only %}

Installing component for Shopker

Add to config/resources/admin_menu.yaml

- { title: 'COMMENTS', route: '/module/comments', icon: 'icon-message-circle' }

Open "src/App/Repository/CommentRepository.php" and replace

class CommentRepository extends DocumentRepository implements CommentRepositoryInterface

to:

class CommentRepository extends BaseRepository implements CommentRepositoryInterface

Manual installing

composer.json

"autoload": {
    "psr-4": {
        ...
        "Andchir\\CommentsBundle\\": "vendor/andchir/shopkeeper4-comments/"
    }
},

config/bundles.php

Andchir\CommentsBundle\CommentsBundle::class => ['all' => true]

Development

Create symlink:

ln -s /path/to/vendor/andchir/shopkeeper4-comments/frontend/projects/comments/src/app \
/path/to/frontend/projects/admin2/src/app/comments

Build for development mode:

ng build comments --optimization false --build-optimizer false --source-map true \
--baseHref="/admin/module/comments/" \
--deployUrl="/bundles/comments/admin/bundle-dev/" \
--outputPath="../public/bundles/comments/admin/bundle-dev" --watch=true

Build for production:

ng build comments --configuration production --baseHref="/admin/module/comments/" \
--deployUrl="/bundles/comments/admin/bundle/" \
--outputPath="../public/bundles/comments/admin/bundle"
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui