to Override the Repo which composer pulls from you will need to add the repository override to your projects composer.json file:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/gitBC/laravel-commentable"
}
],
then run
$composer update slynova/laravel-commentable
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.
-
PLEASE NOTE, this is a fork for version 1.0.1
"require": { "slynova/laravel-commentable": "^1.0.1" }
-
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. --