mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
21 lines
487 B
PHP
21 lines
487 B
PHP
<?php
|
|
|
|
namespace Domain\Settings\Controllers;
|
|
|
|
use Domain\Settings\Events\TestWebsocketConnectionEvent;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class TestWebsocketConnectionController
|
|
{
|
|
public function __invoke(): JsonResponse
|
|
{
|
|
TestWebsocketConnectionEvent::dispatch(
|
|
auth()->user()
|
|
);
|
|
|
|
return response()->json([
|
|
'type' => 'success',
|
|
'message' => 'The websocket test event was successfully dispatched.',
|
|
]);
|
|
}
|
|
} |