Broadcast Service Provider (Providers/BroadcastServiceProvider.php)

RestoPOS · app/Providers/BroadcastServiceProvider.php · php · MIT
realtime, lang:php, fw:laravel

Registers Laravel event broadcasting routes and channel authorization definitions. Use to enable real-time websocket and event broadcasting in backend applications.

// Source: https://github.com/faizaldevs/RestoPOS | License: MIT | Copyright 2020 Anowar Hossain
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;

class BroadcastServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Broadcast::routes();

        require base_path('routes/channels.php');
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key