├── .gitattributes ├── .gitignore ├── LICENSE ├── composer.json ├── config └── comments.php ├── database ├── factories │ └── CommentFactory.php ├── migrations │ ├── 2018_06_30_113500_create_comments_table.php │ └── 2018_11_15_135428_create_comments_votes_table.php └── seeds │ └── CommentsSeeder.php ├── phpunit.xml ├── readme-ru.md ├── readme.md ├── resources └── views │ └── bootstrap4 │ ├── components │ ├── comment │ │ ├── comment.blade.php │ │ └── forms.blade.php │ └── comments.blade.php │ ├── form.blade.php │ └── login-message.blade.php ├── src ├── Contracts │ ├── Comment.php │ ├── ICommentPolicy.php │ ├── ICommentPreprocessor.php │ ├── ICommentable.php │ └── Vote.php ├── Entity │ ├── Comment.php │ └── CommentVotes.php ├── Events │ ├── CommentCreated.php │ ├── CommentDeleted.php │ └── CommentUpdated.php ├── Http │ ├── CommentsHelper.php │ ├── Controllers │ │ ├── CommentsController.php │ │ └── VoteController.php │ ├── Requests │ │ ├── EditRequest.php │ │ ├── GetRequest.php │ │ ├── ReplyRequest.php │ │ ├── SaveRequest.php │ │ └── VoteRequest.php │ └── Resources │ │ └── CommentResource.php ├── Policies │ └── CommentPolicy.php ├── Providers │ ├── AuthServiceProvider.php │ └── ServiceProvider.php ├── Traits │ ├── Commentable.php │ └── Commenter.php ├── UseCases │ ├── CommentService.php │ └── VoteService.php └── routes.php └── tests ├── CommentsTest.php ├── Models ├── Post.php └── SomeUser.php └── TestCase.php /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | composer.lock 2 | vendor/ 3 | .idea/ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/LICENSE -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/composer.json -------------------------------------------------------------------------------- /config/comments.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/config/comments.php -------------------------------------------------------------------------------- /database/factories/CommentFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/database/factories/CommentFactory.php -------------------------------------------------------------------------------- /database/migrations/2018_06_30_113500_create_comments_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/database/migrations/2018_06_30_113500_create_comments_table.php -------------------------------------------------------------------------------- /database/migrations/2018_11_15_135428_create_comments_votes_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/database/migrations/2018_11_15_135428_create_comments_votes_table.php -------------------------------------------------------------------------------- /database/seeds/CommentsSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/database/seeds/CommentsSeeder.php -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/phpunit.xml -------------------------------------------------------------------------------- /readme-ru.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/readme-ru.md -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/readme.md -------------------------------------------------------------------------------- /resources/views/bootstrap4/components/comment/comment.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/resources/views/bootstrap4/components/comment/comment.blade.php -------------------------------------------------------------------------------- /resources/views/bootstrap4/components/comment/forms.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/resources/views/bootstrap4/components/comment/forms.blade.php -------------------------------------------------------------------------------- /resources/views/bootstrap4/components/comments.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/resources/views/bootstrap4/components/comments.blade.php -------------------------------------------------------------------------------- /resources/views/bootstrap4/form.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/resources/views/bootstrap4/form.blade.php -------------------------------------------------------------------------------- /resources/views/bootstrap4/login-message.blade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/resources/views/bootstrap4/login-message.blade.php -------------------------------------------------------------------------------- /src/Contracts/Comment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Contracts/Comment.php -------------------------------------------------------------------------------- /src/Contracts/ICommentPolicy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Contracts/ICommentPolicy.php -------------------------------------------------------------------------------- /src/Contracts/ICommentPreprocessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Contracts/ICommentPreprocessor.php -------------------------------------------------------------------------------- /src/Contracts/ICommentable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Contracts/ICommentable.php -------------------------------------------------------------------------------- /src/Contracts/Vote.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Contracts/Vote.php -------------------------------------------------------------------------------- /src/Entity/Comment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Entity/Comment.php -------------------------------------------------------------------------------- /src/Entity/CommentVotes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Entity/CommentVotes.php -------------------------------------------------------------------------------- /src/Events/CommentCreated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Events/CommentCreated.php -------------------------------------------------------------------------------- /src/Events/CommentDeleted.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Events/CommentDeleted.php -------------------------------------------------------------------------------- /src/Events/CommentUpdated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Events/CommentUpdated.php -------------------------------------------------------------------------------- /src/Http/CommentsHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/CommentsHelper.php -------------------------------------------------------------------------------- /src/Http/Controllers/CommentsController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Controllers/CommentsController.php -------------------------------------------------------------------------------- /src/Http/Controllers/VoteController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Controllers/VoteController.php -------------------------------------------------------------------------------- /src/Http/Requests/EditRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Requests/EditRequest.php -------------------------------------------------------------------------------- /src/Http/Requests/GetRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Requests/GetRequest.php -------------------------------------------------------------------------------- /src/Http/Requests/ReplyRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Requests/ReplyRequest.php -------------------------------------------------------------------------------- /src/Http/Requests/SaveRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Requests/SaveRequest.php -------------------------------------------------------------------------------- /src/Http/Requests/VoteRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Requests/VoteRequest.php -------------------------------------------------------------------------------- /src/Http/Resources/CommentResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Http/Resources/CommentResource.php -------------------------------------------------------------------------------- /src/Policies/CommentPolicy.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Policies/CommentPolicy.php -------------------------------------------------------------------------------- /src/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Providers/AuthServiceProvider.php -------------------------------------------------------------------------------- /src/Providers/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Providers/ServiceProvider.php -------------------------------------------------------------------------------- /src/Traits/Commentable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Traits/Commentable.php -------------------------------------------------------------------------------- /src/Traits/Commenter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/Traits/Commenter.php -------------------------------------------------------------------------------- /src/UseCases/CommentService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/UseCases/CommentService.php -------------------------------------------------------------------------------- /src/UseCases/VoteService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/UseCases/VoteService.php -------------------------------------------------------------------------------- /src/routes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/src/routes.php -------------------------------------------------------------------------------- /tests/CommentsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/tests/CommentsTest.php -------------------------------------------------------------------------------- /tests/Models/Post.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/tests/Models/Post.php -------------------------------------------------------------------------------- /tests/Models/SomeUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/tests/Models/SomeUser.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iooe/laravel-comments/HEAD/tests/TestCase.php --------------------------------------------------------------------------------