承接 m4riachi/laravel-comment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

m4riachi/laravel-comment

Composer 安装命令:

composer require m4riachi/laravel-comment

包简介

add comment bloc to your laravel application

README 文档

README

Latest Version on Packagist Total Downloads

This package add a comment block in the page where it is inserted, the comment is linked to a page (link) not to a model.

Example: if you put the tag on the http://toto.com/controller/action the comments will be linked to this url path.

The tag use the bootstrap css for the styling.

Installation

You can install the package via composer:

composer require m4riachi/laravel-comment


You have publish and run the migrations with:

php artisan vendor:publish --provider="M4riachi\LaravelComment\LaravelCommentServiceProvider" --tag=migrations
php artisan migrate


You can publish the config file with:

php artisan vendor:publish --provider="M4riachi\LaravelComment\LaravelCommentServiceProvider" --tag=config

Optional

If you need to make change in the html design the views files with:

php artisan vendor:publish --provider="M4riachi\LaravelComment\LaravelCommentServiceProvider" --tag=views

Usage

For the front side there is two tags to include in the html of the page where you want to add the comment block.

<x-m4-comment-front-bloc  />

This tag will show the comment form and a list of inserted comment on this page.

<x-m4-comment-front-javascript  />

This one will add the javascript needed.


For the back side there is just one tag.

<x-m4-comment-back-list />

This tag need to use it in the back office, will show all the comment inserted with pagination and two action.

  • An action to change the comment status
  • And delete action

####Config file

From the config file you can configure many option.

  • You can set if a guest user can post a comment, if true 2 input will by added to the form (name, email)
'guest-user' => true, //enable guest user to post a comment
  • You can choose the type of post : normal or ajax post. the plugin use axios to execute ajax
'ajax' => [ 
    'enable' => true, //enable ajax post
    'include_axios' => true, // if false you must have axios on your js files
],
  • By default, the status of every new post is pending, and you have to change the status from the backoffice side
'default_status' => 'pending', // there is two options [pending or approved]
  • like in the description the comment tag is linked to an url path /toto/fofo, if you want to link also the url query you have to enable it. /toto/fofo?param=1 will be different to /toto/fofo?param=2
'with_url_query' => false,
  • Set the model user if he is different to \App\Models\User
'with_url_query' => false,
  • The input validator
'input-validator' => [
    'user_name' => ['required', 'string', 'max:192'],
    'user_email' => ['required', 'string', 'email', 'max:192'],
    'comment' => ['required', 'string'],
],
  • If you want to use recaptcha v3 on your form
'recaptcha' => [
    'enable' => false,
    'site-key' => '',
    'secret-key' => '',
    'checked_score' => 0.4
],

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email taoufiq.benmessaoud@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

m4riachi/laravel-comment 适用场景与选型建议

m4riachi/laravel-comment 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel-comment」 「m4riachi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 m4riachi/laravel-comment 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 m4riachi/laravel-comment 我们能提供哪些服务?
定制开发 / 二次开发

基于 m4riachi/laravel-comment 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-06