Skip to content

Latest commit

 

History

History
executable file
·
30 lines (21 loc) · 992 Bytes

README.md

File metadata and controls

executable file
·
30 lines (21 loc) · 992 Bytes

Laravel-commentable

GitHub Release Packagist Downloads GitHub License Packagist Stars

Package for easily attaching comments to Laravel eloquent models

Installation

Publishing the config file

Publishing the config file (config/commentable.php) is optional:

php artisan vendor:publish --provider="Yuges\Commentable\Providers\CommentableServiceProvider" --tag="commentable-config"

Preparing the database

You need to publish the migration to create the comments table:

php artisan vendor:publish --provider="Yuges\Commentable\Providers\CommentableServiceProvider" --tag="commentable-migrations"

After that, you need to run migrations.

php artisan migrate