feat: Implement asynchronous VM power operations and refactor vCenter snapshot retrieval to use API calls.

This commit is contained in:
pbao9
2026-01-27 16:35:42 +07:00
parent bfb5f9f4a5
commit 057ba58760
16 changed files with 2869 additions and 2521 deletions
+12 -5
View File
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Broadcast;
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all the event broadcasting channels that your
| 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.
|
@@ -18,13 +18,20 @@ use Illuminate\Support\Facades\Broadcast;
//});
Broadcast::channel('Payment-Success.{id}', function ($user, $id) {
return (int)$user->id === (int)$id;
}, ['guards' => 'users']);
}, ['guards' => ['users', 'customer']]);
Broadcast::channel('Expiry-Time.{id}', function ($user, $id) {
return (int)$user->id === (int)$id;
}, ['guards' => 'users']);
}, ['guards' => ['users', 'customer']]);
Broadcast::channel('Created.Success.{id}', function ($user, $id) {
return (int)$user->id === (int)$id;
}, ['guards' => 'users']);
}, ['guards' => ['users', 'customer']]);
Broadcast::channel('Panel.Status.{id}', function ($user, $id) {
return (int)$user->id === (int)$id;
}, ['guards' => 'users']);
}, ['guards' => ['users', 'customer']]);
Broadcast::channel('user.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
}, ['guards' => ['users', 'customer']]);