feat: add routes, lang, tests, stubs, docs, and docker configurations

This commit is contained in:
2026-05-21 16:05:16 +07:00
parent fad70d096b
commit 28a06315b8
3385 changed files with 177070 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
use Illuminate\Support\Facades\Broadcast;
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
// 🛡️ ROLE BASED CHANNELS (Dynamic)
Broadcast::channel('roles.{roleName}', function ($user, $roleName) {
if ($user->hasAnyRole(['Developer', 'Administrator'])) {
return true;
}
return $user->hasRole($roleName);
});
Broadcast::channel('admin.monitoring', function ($user) {
return $user->can('view health and logs');
});