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:
- Add this to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/harshpatel991/laravel-commentable"
}
]
- Change the dependency to point to this repo:
"harshpatel991/laravel-commentable": "dev-master"
- Change namespace of the provider
harshpatel991\Commentable\ServiceProvider::class // add this
Slynova\Commentable\ServiceProvider::class // remove this
- Rename import namespaces from slynova to harshpatel991
use harshpatel991\Commentable\Models\Comment; // add this
use Slynova\Commentable\Models\Comment; // remove this
-
Run composer update on your local machine
-
Run composer install on your deployment server
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
- As Laravel 5.1 require PHP 5.5.9+, we required the same version.
-
Require the package with Composer.
$ composer require slynova/laravel-commentable
-
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, ],
-
Publish the package's migrations to your application and migrate.
$ php artisan vendor:publish --provider="Slynova\Commentable\ServiceProvider" --tag="migrations" $ php artisan migrate
You can find an usage example of this package in the laravel-commentable-example repository.
Nothing has been changed from the first release.
Support follows PSR-2 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.