jsdecena/comments

Laravel Commenting

v0.1.3 2018-10-09 08:43 UTC

This package is auto-updated.

Last update: 2024-12-09 23:06:23 UTC


README

Laravel commenting system

Build Status Latest Stable Version Total Downloads License

How to install

  • Run in your terminal composer require jsdecena/comments

  • Add the base service provider in your config/app.php file like this:

    'providers' => [

        /*
         * Package Service Providers...
         */
        Jsdecena\Comments\CommentServiceProvider::class,
    ],
  • Publish files
php artisan vendor:publish
  • Edit config. Make sure your user is correctly referenced. Commentable type could be any Model (eg. Post). This is only used in initial seeding.
<?php

return [
    'user' => 'App\User',
    'commentable_type' => 'App\User'
];
  • Migrate database
php artisan migrate

Author

Jeff Simons Decena