An open API service indexing awesome lists of open source software.

https://github.com/yuges-code/laravel-commentable

Package for easily attaching comments to Laravel eloquent models 🗯️
https://github.com/yuges-code/laravel-commentable

comments laravel php

Last synced: 12 months ago
JSON representation

Package for easily attaching comments to Laravel eloquent models 🗯️

Awesome Lists containing this project

README

          

# Laravel-commentable

![GitHub Release](https://img.shields.io/github/v/release/yuges-code/laravel-commentable)
![Packagist Downloads](https://img.shields.io/packagist/dt/yuges-code/laravel-commentable)
![GitHub License](https://img.shields.io/github/license/yuges-code/laravel-commentable)
![Packagist Stars](https://img.shields.io/packagist/stars/yuges-code/laravel-commentable)

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
```