PHP Classes

File: src/Core/Commands/stubs/module/routes/channels.php

Recommend this page to a friend!
  Classes of Moamen Eltouny  >  Laravel Module Generator  >  src/Core/Commands/stubs/module/routes/channels.php  >  Download  
File: src/Core/Commands/stubs/module/routes/channels.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Module Generator
Generate code for modules for Laravel applications
Author: By
Last change:
Date: 9 months ago
Size: 582 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Broadcast;

/*
|--------------------------------------------------------------------------
| Broadcast Channels [{{ module-name }}]
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| module supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/

// Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
// return (int) $user->id === (int) $id;
// });

For more information send a message to info at phpclasses dot org.