first commit

This commit is contained in:
Noor E Ilahi
2026-01-09 12:54:53 +05:30
commit 7ccf44f7da
1070 changed files with 113036 additions and 0 deletions

33
routes/channels.php Normal file
View File

@@ -0,0 +1,33 @@
<?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.
|
*/
use App\Models\User;
Broadcast::channel('tasks.{userId}', static function (User $user, $userId) {
return (int)$user->id === (int)$userId;
});
Broadcast::channel('projects.{userId}', static function (User $user, $userId) {
return (int)$user->id === (int)$userId;
});
Broadcast::channel('gantt.{userId}', static function (User $user, $userId) {
return (int)$user->id === (int)$userId;
});
Broadcast::channel('intervals.{userId}', static function (User $user, $userId) {
return (int)$user->id === (int)$userId;
});
Broadcast::channel('tasks_activities.{userId}', static function (User $user, $userId) {
return (int)$user->id === (int)$userId;
});