Document Designer is a Laravel/Ucello Package allowing to add a comment widget linked to any Uccello entity.
- Comments linked to any Uccello entity
- Create / Edit / Delete comments by users
- Reply to any first level comments
composer require uccello/comment
After installation execute the following :
php artisan vendor:publish --provider="Uccello\Comment\Providers\AppServiceProvider"
To add a comment widget add a migration that will execute the following lines :
$widget = Widget::where('label', 'widget.comments')->first();
$module->widgets()->attach($widget->id, ['data' => json_encode(['title' => 'Comments']), 'sequence' => 0]);
Note that filling the data field isn't mandatory.
You can add the folowing optional setings to your uccello.php config file:
'comment' => [
'max_height' => 450,
'show_child' => true,
'can_edit_parent' => true,
'can_delete_parent' => false,
'order_desc' => true,
]