承接 agilepixels/laravel-commentable 相关项目开发

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

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

agilepixels/laravel-commentable

Composer 安装命令:

composer require agilepixels/laravel-commentable

包简介

A package to add comments to Eloquent Models

README 文档

README

Installation

You can install the package via composer:

composer require agilepixels/laravel-commentable

You must publish the migration with:

php artisan vendor:publish --provider="AgilePixels\Commentable\CommentableServiceProvider" --tag="migrations"

Migrate the comments table:

php artisan migrate

Optionally you can publish the config-file with:

php artisan vendor:publish --provider="AgilePixels\Commentable\CommentableServiceProvider" --tag="config"

Using the traits

To enable the comments for a model, use the AgilePixels\Commentable\Traits\HasComments trait on the model.

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use AgilePixels\Commentable\Traits\HasComments;

class Product extends Model
{
    use HasComments;
}

You can use the AgilePixels\Commentable\Traits\AddsComments on the author model:

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use AgilePixels\Commentable\Traits\AddsComments;

class User extends Model
{
    use AddsComments;
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固