PHP code example of uccello / comment

1. Go to this page and download the library: Download uccello/comment library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uccello / comment example snippets


$widget = Widget::where('label', 'widget.comments')->first();
$module->widgets()->attach($widget->id, ['data' => json_encode(['title' => 'Comments']), 'sequence' => 0]);

'comment' => [
        'max_height' => 450,
        'show_child' => true,
        'can_edit_parent' => true,
        'can_delete_parent' => false,
        'order_desc' => true,
]
bash
php artisan vendor:publish --provider="Uccello\Comment\Providers\AppServiceProvider"