mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	commit message
This commit is contained in:
		
							
								
								
									
										16
									
								
								routes/channels.php
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								routes/channels.php
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| <?php | ||||
|  | ||||
| /* | ||||
| |-------------------------------------------------------------------------- | ||||
| | Broadcast Channels | ||||
| |-------------------------------------------------------------------------- | ||||
| | | ||||
| | Here you may register all of the event broadcasting channels that your | ||||
| | application supports. The given channel authorization callbacks are | ||||
| | used to check if an authenticated user can listen to the channel. | ||||
| | | ||||
| */ | ||||
|  | ||||
| Broadcast::channel('App.User.{id}', function ($user, $id) { | ||||
|     return (int) $user->id === (int) $id; | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user