janakkapadia/commentable

Commentable - Easy way to apply comment on any model.

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

pkg:composer/janakkapadia/commentable

1.0.5 2021-07-07 12:09 UTC

This package is auto-updated.

Last update: 2025-09-29 03:05:54 UTC


README

Package setup steps:

  • Go to project root directory from terminal

  • Run following commands:

    composer require janakkapadia/commentable
    php artisan vendor:publish --tag=comment-migrations
    php artisan migrate
  • You need add trait in following model:

    use HasComments;
  • Create Comment:

    $model->comments()->create([
        "comment" => "add content here"
    ]);