ChatSytem APIs
#
registerPolicies()method to register policies ChatSystem provides.
use ChatSystem;
ChatSystem::registerPolicies();
#
registerObservers()method to register observers ChatSystem provides.
#
@Paramsexclude
| array of models name to exclude from register |array
use ChatSystem;
ChatSystem::registerObservers(exclude: ['conversation' => true]);
#
registerBroadcastRoutes()method to register broadcast routes ChatSystem provides.
use ChatSystem;
ChatSystem::registerBroadcastRoutes();
#
async()method to asynchronously call fuctions if only laravel octane
is configured to use swoole otherwise call functions synchronously.
#
@Paramscalls
| array of models name to exclude from register |callback arguments
use ChatSystem;
ChatSystem::async( fn () => print(1), fn () => print(2), fn () => print(3),);