/laravel-commentable

This is a a fork of v1.0.1. slynova/laravel-commentable since the repo owner has removed it.

Primary LanguagePHPMIT LicenseMIT

This is a a fork of v1.0.1. slynova/laravel-commentable since the repo owner has removed it.

As a temporary work around, if your project can't resolve the slynova/laravel-commentable dependency and you are using v1.0.1, you can switch to using this repo as the source:

  1. Add this to your composer.json:
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/harshpatel991/laravel-commentable"
    }
]
  1. Change the dependency to point to this repo:
"harshpatel991/laravel-commentable": "dev-master"
  1. Change namespace of the provider
harshpatel991\Commentable\ServiceProvider::class // add this
Slynova\Commentable\ServiceProvider::class // remove this
  1. Rename import namespaces from slynova to harshpatel991
use harshpatel991\Commentable\Models\Comment; // add this
use Slynova\Commentable\Models\Comment; // remove this
  1. Run composer update on your local machine

  2. Run composer install on your deployment server

Laravel-Commentable

StyleCI License Total Downloads

SensioLabsInsight

Laravel Commentable adds polymorphic threaded comments to Laravel 5.1 and above.

This package use Nested Set pattern with Baum.
More information about Nested Set

Table of Contents

Requirements

  • As Laravel 5.1 require PHP 5.5.9+, we required the same version.

Getting Started

  1. Require the package with Composer.

    $ composer require slynova/laravel-commentable
  2. Add the package to your application service providers in config/app.php.

    'providers' => [
    
        Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
        Illuminate\Auth\AuthServiceProvider::class,
        ...
        Slynova\Commentable\ServiceProvider::class,
    
    ],
  3. Publish the package's migrations to your application and migrate.

    $ php artisan vendor:publish --provider="Slynova\Commentable\ServiceProvider" --tag="migrations"
    $ php artisan migrate

Example

You can find an usage example of this package in the laravel-commentable-example repository.

Change Logs

Nothing has been changed from the first release.

Contribution Guidelines

Support follows PSR-2 PHP coding standards, and semantic versioning.

Please report any issue you find in the issues page. Pull requests are welcome.