PHPackages                             laravolt/mural - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. laravolt/mural

ActiveLibrary

laravolt/mural
==============

Laravel comment stream

1.0.1(9y ago)101.3k3[2 issues](https://github.com/laravolt/mural/issues)MITPHPPHP &gt;=5.3.0

Since Sep 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/laravolt/mural)[ Packagist](https://packagist.org/packages/laravolt/mural)[ Docs](https://github.com/laravolt/mural)[ RSS](/packages/laravolt-mural/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (15)Used By (0)

Laravolt Mural
==============

[](#laravolt-mural)

[![Travis-CI Build Status](https://camo.githubusercontent.com/55d01cbebe631056810101f90121f7e2b1e87179c2cdf2f681ec5b68b456e447/68747470733a2f2f6170692e7472617669732d63692e6f72672f6c617261766f6c742f6d7572616c2e737667)](https://camo.githubusercontent.com/55d01cbebe631056810101f90121f7e2b1e87179c2cdf2f681ec5b68b456e447/68747470733a2f2f6170692e7472617669732d63692e6f72672f6c617261766f6c742f6d7572616c2e737667)[![Coverage Status](https://camo.githubusercontent.com/da2891eb149b2d341b4489a0a3a9e8dccc692dbf478932b82f009843b5f20d1f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c617261766f6c742f6d7572616c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/laravolt/mural?branch=master)

Laravolt Mural bertujuan menyediakan fitur komentar yang siap dipakai dan mudah diintegrasikan ke dalam aplikasi berbasis Laravel.

Package ini masih dalam tahap pengembangan dan belum dianjurkan untuk digunakan dalam produksi.

Requirement
-----------

[](#requirement)

- Jquery
- Semantic-ui or Bootstrap

Instalasi
---------

[](#instalasi)

### Update composer.json

[](#update-composerjson)

#### Untuk Laravel 5.2

[](#untuk-laravel-52)

Bisa dengan menjalankan perintah:

```
composer require laravolt/mural

```

Atau menambahkan deklarasi berikut ke file composer.json:

```
"require": {
    ...
    "laravolt/mural": "^1.0"
},

```

#### Untuk Laravel 5.1

[](#untuk-laravel-51)

Tambahkan deklarasi berikut ke file composer.json:

```
"require": {
    ...
    "laravolt/mural": "^0.5"
}

```

### Service Provider

[](#service-provider)

```
Laravolt\Mural\ServiceProvider::class,

```

### Facade

[](#facade)

```
'Mural'  => Laravolt\Mural\Facade::class,

```

### Migration

[](#migration)

```
php artisan vendor:publish
php artisan migrate

```

Ini akan menambahkan file migrasi baru `2015_08_17_101000_create_comments_table.php` sekaligus menjalan migrasi tersebut. Tabel baru bernama `comments` akan ditambahkan ke basisdata.

### Config mural.php

[](#config-muralphp)

Isi `default_commentable` dengan deklarasi class model yang bisa dikomentari

```
'default_commentable' => \App\Post::class,

```

Penggunaan
----------

[](#penggunaan)

Untuk setiap model yang bisa dikomentari, tambahkan `trait` dan `interface` seperti berikut:

```
