PHP code example of techies-africa / laravel-reverb-ui

1. Go to this page and download the library: Download techies-africa/laravel-reverb-ui 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/ */

    

techies-africa / laravel-reverb-ui example snippets


use Illuminate\Support\Facades\Gate;

public function boot()
{
    Gate::define('viewReverbUI', function ($user) {
        return in_array($user->email, [
            '[email protected]',
        ]);
    });
}

return [
    'path' => 'reverb-ui',
    'middleware' => ['web', 'auth'],
    
    // Auto-prune old events to save database space
    'max_events' => 1000,
    
    // Ignore noisy system events
    'ignored_events' => [
        'pusher:ping',
        'pusher:pong',
    ],
];
bash
php artisan reverb-ui:install