first commit

This commit is contained in:
2026-05-20 14:01:28 +02:00
commit 0beb9cbab0
2550 changed files with 558392 additions and 0 deletions
@@ -0,0 +1,34 @@
<?php
namespace Vanguard\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Broadcast::routes();
/*
* Authenticate the user's personal channel...
*/
Broadcast::channel('Vanguard.User.*', function ($user, $userId) {
return (int) $user->id === (int) $userId;
});
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}