All of the configuration options can be changed from config/comments.php or from the Settings page in the admin panel.

The options from the admin panel will always have priority over the ones from the file.


Get your recaptcha keys at and copy them in config/services.php:

'recaptcha' => [
    'key' => 'your-key',
    'secret' => 'your-secret',

Now you can enable captcha from config/comments.php or from the Settings > Protection page.

Real Time

Real Time only works with Laravel 5.3+.

Before enabling this option you need to have a broadcast driver configured. you can either use Pusher or Redis+Socket.IO.


The script uses the TextFormatter package and allows you to highly customize the comment formatter.

By default you have some options to choose from, but if you want to add even more options you can configure the formatter however you want using the Hazzard\Comments\Events\FormatterConfigurator event:

First define a listener, then register it in EventServiceProvider:


protected $listen = [
    'Hazzard\Comments\Events\FormatterConfigurator' => [



namespace App\Listeners;

use s9e\TextFormatter\Configurator;
use Hazzard\Comments\Events\FormatterConfigurator;

class ConfigureFormatter
    * Handle the event.
    * @param  FormatterConfigurator $event
    * @return void
   public function handle(FormatterConfigurator $event)
       // Access the configurator using $event->configurator...

       $event->configurator->Emoticons->add(':)', '&#x1f604;');

Learn more about the TextFormatter.

Notice: Each time you change something related to the formatter via the config file, you must run php artisan cache:clear to clear the formatter configuration cache.