diff --git a/app/Events/Broadcast.php b/app/Events/Broadcast.php deleted file mode 100644 index 31541cd..0000000 --- a/app/Events/Broadcast.php +++ /dev/null @@ -1,16 +0,0 @@ -server->update([ 'status' => 'installation_failed', ]); - event( - new Broadcast('install-server-failed', [ - 'server' => $this->server, - ]) - ); return; } diff --git a/app/Jobs/PHP/InstallPHPExtension.php b/app/Jobs/PHP/InstallPHPExtension.php index 444389b..5706c48 100755 --- a/app/Jobs/PHP/InstallPHPExtension.php +++ b/app/Jobs/PHP/InstallPHPExtension.php @@ -2,7 +2,6 @@ namespace App\Jobs\PHP; -use App\Events\Broadcast; use App\Exceptions\ProcessFailed; use App\Jobs\Job; use App\Models\Service; @@ -40,19 +39,9 @@ public function handle(): void $typeData['extensions'][] = $this->name; $this->service->type_data = $typeData; $this->service->save(); - event( - new Broadcast('install-php-extension-finished', [ - 'service' => $this->service, - ]) - ); } public function failed(): void { - event( - new Broadcast('install-php-extension-failed', [ - 'service' => $this->service, - ]) - ); } } diff --git a/app/Jobs/Queue/Deploy.php b/app/Jobs/Queue/Deploy.php index 93cc46f..2e74b2a 100644 --- a/app/Jobs/Queue/Deploy.php +++ b/app/Jobs/Queue/Deploy.php @@ -3,7 +3,6 @@ namespace App\Jobs\Queue; use App\Enums\QueueStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Queue; @@ -30,20 +29,10 @@ public function handle(): void ); $this->worker->status = QueueStatus::RUNNING; $this->worker->save(); - event( - new Broadcast('deploy-queue-finished', [ - 'queue' => $this->worker, - ]) - ); } public function failed(): void { $this->worker->delete(); - event( - new Broadcast('deploy-queue-failed', [ - 'queue' => $this->worker, - ]) - ); } } diff --git a/app/Jobs/Queue/GetLogs.php b/app/Jobs/Queue/GetLogs.php index 6fe00cc..2f8f917 100644 --- a/app/Jobs/Queue/GetLogs.php +++ b/app/Jobs/Queue/GetLogs.php @@ -2,7 +2,6 @@ namespace App\Jobs\Queue; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Queue; @@ -18,20 +17,10 @@ public function __construct(Queue $worker) public function handle(): void { $logs = $this->worker->server->processManager()->handler()->getLogs($this->worker->log_file); - event( - new Broadcast('get-logs-finished', [ - 'id' => $this->worker->id, - 'logs' => $logs, - ]) - ); } public function failed(): void { - event( - new Broadcast('get-logs-failed', [ - 'message' => __('Failed to download the logs!'), - ]) - ); + } } diff --git a/app/Jobs/Queue/Manage.php b/app/Jobs/Queue/Manage.php index 8fa1b7c..83c137c 100644 --- a/app/Jobs/Queue/Manage.php +++ b/app/Jobs/Queue/Manage.php @@ -2,7 +2,6 @@ namespace App\Jobs\Queue; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Queue; @@ -47,22 +46,11 @@ public function handle(): void } $this->worker->status = $this->successStatus; $this->worker->save(); - event( - new Broadcast('manage-queue-finished', [ - 'queue' => $this->worker, - ]) - ); } public function failed(): void { $this->worker->status = $this->failStatus; $this->worker->save(); - event( - new Broadcast('manage-queue-failed', [ - 'message' => $this->failMessage, - 'queue' => $this->worker, - ]) - ); } } diff --git a/app/Jobs/Queue/Remove.php b/app/Jobs/Queue/Remove.php index 60291c2..81b8903 100644 --- a/app/Jobs/Queue/Remove.php +++ b/app/Jobs/Queue/Remove.php @@ -3,7 +3,6 @@ namespace App\Jobs\Queue; use App\Enums\QueueStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Queue; @@ -20,22 +19,11 @@ public function handle(): void { $this->worker->server->processManager()->handler()->delete($this->worker->id, $this->worker->site_id); $this->worker->delete(); - event( - new Broadcast('remove-queue-finished', [ - 'id' => $this->worker->id, - ]) - ); } public function failed(): void { $this->worker->status = QueueStatus::FAILED; $this->worker->save(); - event( - new Broadcast('remove-queue-failed', [ - 'message' => __('Failed to delete worker!'), - 'id' => $this->worker->id, - ]) - ); } } diff --git a/app/Jobs/Redirect/AddToServer.php b/app/Jobs/Redirect/AddToServer.php index b8915f6..73a5fbf 100644 --- a/app/Jobs/Redirect/AddToServer.php +++ b/app/Jobs/Redirect/AddToServer.php @@ -2,7 +2,6 @@ namespace App\Jobs\Redirect; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Redirect; @@ -22,21 +21,11 @@ public function handle(): void $this->redirect->site->server->webserver()->handler()->updateRedirects($this->redirect->site, $redirects); $this->redirect->status = 'ready'; $this->redirect->save(); - event( - new Broadcast('create-redirect-finished', [ - 'redirect' => $this->redirect, - ]) - ); } public function failed(): void { $this->redirect->status = 'failed'; $this->redirect->delete(); - event( - new Broadcast('create-redirect-failed', [ - 'redirect' => $this->redirect, - ]) - ); } } diff --git a/app/Jobs/Redirect/DeleteFromServer.php b/app/Jobs/Redirect/DeleteFromServer.php index 38afd00..e393f50 100644 --- a/app/Jobs/Redirect/DeleteFromServer.php +++ b/app/Jobs/Redirect/DeleteFromServer.php @@ -2,7 +2,6 @@ namespace App\Jobs\Redirect; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Redirect; @@ -24,21 +23,11 @@ public function handle(): void ->get(); $this->redirect->site->server->webserver()->handler()->updateRedirects($this->redirect->site, $redirects); $this->redirect->delete(); - event( - new Broadcast('delete-redirect-finished', [ - 'id' => $this->redirect->id, - ]) - ); } public function failed(): void { $this->redirect->status = 'failed'; $this->redirect->save(); - event( - new Broadcast('delete-redirect-failed', [ - 'redirect' => $this->redirect, - ]) - ); } } diff --git a/app/Jobs/Script/ExecuteOn.php b/app/Jobs/Script/ExecuteOn.php index 58998dd..23c0c8a 100644 --- a/app/Jobs/Script/ExecuteOn.php +++ b/app/Jobs/Script/ExecuteOn.php @@ -2,7 +2,6 @@ namespace App\Jobs\Script; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Script; use App\Models\ScriptExecution; @@ -41,21 +40,11 @@ public function handle(): void ); $this->scriptExecution->finished_at = now(); $this->scriptExecution->save(); - event( - new Broadcast('execute-script-finished', [ - 'execution' => $this->scriptExecution, - ]) - ); } public function failed(): void { $this->scriptExecution->finished_at = now(); $this->scriptExecution->save(); - event( - new Broadcast('execute-script-failed', [ - 'execution' => $this->scriptExecution, - ]) - ); } } diff --git a/app/Jobs/Service/Manage.php b/app/Jobs/Service/Manage.php index c6a7a43..8843e84 100644 --- a/app/Jobs/Service/Manage.php +++ b/app/Jobs/Service/Manage.php @@ -2,7 +2,6 @@ namespace App\Jobs\Service; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Service; use App\SSHCommands\Service\RestartServiceCommand; @@ -54,22 +53,11 @@ public function handle(): void ); $this->service->status = $this->successStatus; $this->service->save(); - event( - new Broadcast('update-service-finished', [ - 'service' => $this->service, - ]) - ); } public function failed(): void { $this->service->status = $this->failStatus; $this->service->save(); - event( - new Broadcast('update-service-failed', [ - 'message' => $this->service->name.' '.$this->failMessage, - 'service' => $this->service, - ]) - ); } } diff --git a/app/Jobs/Site/DeleteSite.php b/app/Jobs/Site/DeleteSite.php index 1242144..ab9b200 100755 --- a/app/Jobs/Site/DeleteSite.php +++ b/app/Jobs/Site/DeleteSite.php @@ -3,7 +3,6 @@ namespace App\Jobs\Site; use App\Enums\SiteStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Site; @@ -20,21 +19,11 @@ public function handle(): void { $this->site->server->webserver()->handler()->deleteSite($this->site); $this->site->delete(); - event( - new Broadcast('delete-site-finished', [ - 'site' => $this->site, - ]) - ); } public function failed(): void { $this->site->status = SiteStatus::READY; $this->site->save(); - event( - new Broadcast('delete-site-failed', [ - 'site' => $this->site, - ]) - ); } } diff --git a/app/Jobs/Site/Deploy.php b/app/Jobs/Site/Deploy.php index 9b0cf43..973aa13 100644 --- a/app/Jobs/Site/Deploy.php +++ b/app/Jobs/Site/Deploy.php @@ -3,7 +3,6 @@ namespace App\Jobs\Site; use App\Enums\DeploymentStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Deployment; use App\SSHCommands\System\RunScriptCommand; @@ -39,11 +38,6 @@ public function handle(): void $this->deployment->status = DeploymentStatus::FINISHED; $this->deployment->log_id = $ssh->log->id; $this->deployment->save(); - event( - new Broadcast('deploy-site-finished', [ - 'deployment' => $this->deployment, - ]) - ); } catch (Throwable) { $this->deployment->log_id = $ssh->log->id; $this->deployment->save(); @@ -55,10 +49,5 @@ public function failed(): void { $this->deployment->status = DeploymentStatus::FAILED; $this->deployment->save(); - event( - new Broadcast('deploy-site-failed', [ - 'deployment' => $this->deployment, - ]) - ); } } diff --git a/app/Jobs/Site/DeployEnv.php b/app/Jobs/Site/DeployEnv.php index 1e396a3..964452f 100644 --- a/app/Jobs/Site/DeployEnv.php +++ b/app/Jobs/Site/DeployEnv.php @@ -2,7 +2,6 @@ namespace App\Jobs\Site; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Site; use App\SSHCommands\System\EditFileCommand; @@ -28,19 +27,9 @@ public function handle(): void $this->site->env ) ); - event( - new Broadcast('deploy-site-env-finished', [ - 'site' => $this->site, - ]) - ); } public function failed(): void { - event( - new Broadcast('deploy-site-env-failed', [ - 'site' => $this->site, - ]) - ); } } diff --git a/app/Jobs/Site/UpdateBranch.php b/app/Jobs/Site/UpdateBranch.php index f2606e6..afc5687 100644 --- a/app/Jobs/Site/UpdateBranch.php +++ b/app/Jobs/Site/UpdateBranch.php @@ -2,7 +2,6 @@ namespace App\Jobs\Site; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Site; use App\SSHCommands\Website\UpdateBranchCommand; @@ -35,19 +34,9 @@ public function handle(): void ); $this->site->branch = $this->branch; $this->site->save(); - event( - new Broadcast('update-branch-finished', [ - 'site' => $this->site, - ]) - ); } public function failed(): void { - event( - new Broadcast('update-branch-failed', [ - 'site' => $this->site, - ]) - ); } } diff --git a/app/Jobs/SshKey/DeleteSshKeyFromServer.php b/app/Jobs/SshKey/DeleteSshKeyFromServer.php index 26fbeb4..acc23ba 100644 --- a/app/Jobs/SshKey/DeleteSshKeyFromServer.php +++ b/app/Jobs/SshKey/DeleteSshKeyFromServer.php @@ -2,7 +2,6 @@ namespace App\Jobs\SshKey; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Server; use App\Models\SshKey; @@ -31,20 +30,10 @@ public function handle() 'delete-ssh-key' ); $this->server->sshKeys()->detach($this->sshKey); - event( - new Broadcast('delete-ssh-key-finished', [ - 'sshKey' => $this->sshKey, - ]) - ); } public function failed(): void { $this->server->sshKeys()->attach($this->sshKey); - event( - new Broadcast('delete-ssh-key-failed', [ - 'sshKey' => $this->sshKey, - ]) - ); } } diff --git a/app/Jobs/SshKey/DeploySshKeyToServer.php b/app/Jobs/SshKey/DeploySshKeyToServer.php index b5d5b67..5d663b7 100644 --- a/app/Jobs/SshKey/DeploySshKeyToServer.php +++ b/app/Jobs/SshKey/DeploySshKeyToServer.php @@ -3,7 +3,6 @@ namespace App\Jobs\SshKey; use App\Enums\SshKeyStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Server; use App\Models\SshKey; @@ -34,20 +33,10 @@ public function handle(): void $this->sshKey->servers()->updateExistingPivot($this->server->id, [ 'status' => SshKeyStatus::ADDED, ]); - event( - new Broadcast('deploy-ssh-key-finished', [ - 'sshKey' => $this->sshKey, - ]) - ); } public function failed(): void { $this->server->sshKeys()->detach($this->sshKey); - event( - new Broadcast('deploy-ssh-key-failed', [ - 'sshKey' => $this->sshKey, - ]) - ); } } diff --git a/app/Jobs/Ssl/Deploy.php b/app/Jobs/Ssl/Deploy.php index cead66d..2ebb73c 100644 --- a/app/Jobs/Ssl/Deploy.php +++ b/app/Jobs/Ssl/Deploy.php @@ -4,7 +4,6 @@ use App\Enums\SiteType; use App\Enums\SslStatus; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Ssl; @@ -22,11 +21,6 @@ public function handle(): void $this->ssl->site->server->webserver()->handler()->setupSSL($this->ssl); $this->ssl->status = SslStatus::CREATED; $this->ssl->save(); - event( - new Broadcast('deploy-ssl-finished', [ - 'ssl' => $this->ssl, - ]) - ); if ($this->ssl->site->type == SiteType::WORDPRESS) { $typeData = $this->ssl->site->type_data; $typeData['url'] = $this->ssl->site->url; @@ -38,11 +32,6 @@ public function handle(): void public function failed(): void { - event( - new Broadcast('deploy-ssl-failed', [ - 'ssl' => $this->ssl, - ]) - ); $this->ssl->delete(); } } diff --git a/app/Jobs/Ssl/Remove.php b/app/Jobs/Ssl/Remove.php index 6134155..d277855 100644 --- a/app/Jobs/Ssl/Remove.php +++ b/app/Jobs/Ssl/Remove.php @@ -2,7 +2,6 @@ namespace App\Jobs\Ssl; -use App\Events\Broadcast; use App\Jobs\Job; use App\Models\Ssl; @@ -19,21 +18,11 @@ public function handle(): void { $this->ssl->site->server->webserver()->handler()->removeSSL($this->ssl); $this->ssl->delete(); - event( - new Broadcast('remove-ssl-finished', [ - 'ssl' => $this->ssl, - ]) - ); } public function failed(): void { $this->ssl->status = 'failed'; $this->ssl->save(); - event( - new Broadcast('remove-ssl-failed', [ - 'ssl' => $this->ssl, - ]) - ); } } diff --git a/app/Listeners/BroadcastListener.php b/app/Listeners/BroadcastListener.php deleted file mode 100644 index 8623ebe..0000000 --- a/app/Listeners/BroadcastListener.php +++ /dev/null @@ -1,21 +0,0 @@ - $event->type, - 'data' => $event->data, - ], now()->addMinutes(5)); - } -} diff --git a/app/Models/Service.php b/app/Models/Service.php index e747ad2..338b84b 100755 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -7,7 +7,6 @@ use App\Contracts\ProcessManager; use App\Contracts\Webserver; use App\Enums\ServiceStatus; -use App\Events\Broadcast; use App\Exceptions\InstallationFailed; use App\Jobs\Service\Manage; use App\ServiceHandlers\PHP; @@ -96,20 +95,7 @@ public function install(): void { Bus::chain([ $this->installer(), - function () { - event( - new Broadcast('install-service-finished', [ - 'service' => $this, - ]) - ); - }, - ])->catch(function () { - event( - new Broadcast('install-service-failed', [ - 'service' => $this, - ]) - ); - })->onConnection('ssh-long')->dispatch(); + ])->onConnection('ssh-long')->dispatch(); } /** @@ -117,18 +103,7 @@ function () { */ public function validateInstall($result): void { - if (Str::contains($result, 'Active: active')) { - event( - new Broadcast('install-service-finished', [ - 'service' => $this, - ]) - ); - } else { - event( - new Broadcast('install-service-failed', [ - 'service' => $this, - ]) - ); + if (! Str::contains($result, 'Active: active')) { throw new InstallationFailed(); } } @@ -140,21 +115,11 @@ public function uninstall(): void Bus::chain([ $this->uninstaller(), function () { - event( - new Broadcast('uninstall-service-finished', [ - 'service' => $this, - ]) - ); $this->delete(); }, ])->catch(function () { $this->status = ServiceStatus::FAILED; $this->save(); - event( - new Broadcast('uninstall-service-failed', [ - 'service' => $this, - ]) - ); })->onConnection('ssh')->dispatch(); } diff --git a/app/Models/Site.php b/app/Models/Site.php index 02897ed..dc640fd 100755 --- a/app/Models/Site.php +++ b/app/Models/Site.php @@ -6,7 +6,6 @@ use App\Enums\DeploymentStatus; use App\Enums\SiteStatus; use App\Enums\SslStatus; -use App\Events\Broadcast; use App\Exceptions\SourceControlIsNotConnected; use App\Facades\Notifier; use App\Jobs\Site\Deploy; @@ -399,11 +398,6 @@ public function installationFinished(): void 'status' => SiteStatus::READY, 'progress' => 100, ]); - event( - new Broadcast('install-site-finished', [ - 'site' => $this, - ]) - ); Notifier::send($this, new SiteInstallationSucceed($this)); } @@ -415,11 +409,6 @@ public function installationFailed(Throwable $e): void $this->update([ 'status' => SiteStatus::INSTALLATION_FAILED, ]); - event( - new Broadcast('install-site-failed', [ - 'site' => $this, - ]) - ); Notifier::send($this, new SiteInstallationFailed($this)); Log::error('install-site-error', [ 'error' => (string) $e, diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php deleted file mode 100644 index 2be04f5..0000000 --- a/app/Providers/BroadcastServiceProvider.php +++ /dev/null @@ -1,19 +0,0 @@ - [ SendEmailVerificationNotification::class, ], - Broadcast::class => [ - BroadcastListener::class, - ], ]; /** diff --git a/app/ServerTypes/AbstractType.php b/app/ServerTypes/AbstractType.php index ffbf703..ba03f57 100755 --- a/app/ServerTypes/AbstractType.php +++ b/app/ServerTypes/AbstractType.php @@ -3,7 +3,6 @@ namespace App\ServerTypes; use App\Contracts\ServerType; -use App\Events\Broadcast; use App\Models\Server; use Closure; @@ -22,11 +21,6 @@ protected function progress(int $percentage, ?string $step = null): Closure $this->server->progress = $percentage; $this->server->progress_step = $step; $this->server->save(); - event(new Broadcast('server-installation-progress', [ - 'server' => $this->server, - 'step' => $step, - 'percentage' => $percentage, - ])); }; } } diff --git a/app/ServerTypes/Database.php b/app/ServerTypes/Database.php index 984fe85..fdbee39 100755 --- a/app/ServerTypes/Database.php +++ b/app/ServerTypes/Database.php @@ -2,7 +2,6 @@ namespace App\ServerTypes; -use App\Events\Broadcast; use App\Facades\Notifier; use App\Jobs\Installation\Initialize; use App\Jobs\Installation\InstallRequirements; @@ -64,11 +63,6 @@ public function install(): void 'status' => 'ready', 'progress' => 100, ]); - event( - new Broadcast('install-server-finished', [ - 'server' => $this->server, - ]) - ); Notifier::send($this->server, new ServerInstallationSucceed($this->server)); }; @@ -77,11 +71,6 @@ public function install(): void $this->server->update([ 'status' => 'installation_failed', ]); - event( - new Broadcast('install-server-failed', [ - 'server' => $this->server, - ]) - ); Notifier::send($this->server, new ServerInstallationFailed($this->server)); Log::error('server-installation-error', [ 'error' => (string) $e, diff --git a/app/ServerTypes/Regular.php b/app/ServerTypes/Regular.php index 9b07815..ac53de5 100755 --- a/app/ServerTypes/Regular.php +++ b/app/ServerTypes/Regular.php @@ -3,7 +3,6 @@ namespace App\ServerTypes; use App\Enums\ServerStatus; -use App\Events\Broadcast; use App\Facades\Notifier; use App\Jobs\Installation\Initialize; use App\Jobs\Installation\InstallCertbot; @@ -86,11 +85,6 @@ public function install(): void 'status' => ServerStatus::READY, 'progress' => 100, ]); - event( - new Broadcast('install-server-finished', [ - 'server' => $this->server, - ]) - ); Notifier::send($this->server, new ServerInstallationSucceed($this->server)); }; @@ -99,11 +93,6 @@ public function install(): void $this->server->update([ 'status' => 'installation_failed', ]); - event( - new Broadcast('install-server-failed', [ - 'server' => $this->server, - ]) - ); Notifier::send($this->server, new ServerInstallationFailed($this->server)); Log::error('server-installation-error', [ 'error' => (string) $e, diff --git a/app/SiteTypes/AbstractSiteType.php b/app/SiteTypes/AbstractSiteType.php index 22a29a8..ce8746a 100755 --- a/app/SiteTypes/AbstractSiteType.php +++ b/app/SiteTypes/AbstractSiteType.php @@ -3,7 +3,6 @@ namespace App\SiteTypes; use App\Contracts\SiteType; -use App\Events\Broadcast; use App\Jobs\Site\DeleteSite; use App\Models\Site; use Closure; @@ -27,12 +26,6 @@ protected function progress(int $percentage): Closure return function () use ($percentage) { $this->site->progress = $percentage; $this->site->save(); - event( - new Broadcast('site-installation-progress', [ - 'site' => $this->site, - 'percentage' => $percentage, - ]) - ); }; } } diff --git a/config/app.php b/config/app.php index 5b4d798..7d1df56 100644 --- a/config/app.php +++ b/config/app.php @@ -192,7 +192,6 @@ */ App\Providers\AppServiceProvider::class, App\Providers\AuthServiceProvider::class, - App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, ], diff --git a/config/broadcasting.php b/config/broadcasting.php deleted file mode 100644 index 9e4d4aa..0000000 --- a/config/broadcasting.php +++ /dev/null @@ -1,70 +0,0 @@ - env('BROADCAST_DRIVER', 'null'), - - /* - |-------------------------------------------------------------------------- - | Broadcast Connections - |-------------------------------------------------------------------------- - | - | Here you may define all of the broadcast connections that will be used - | to broadcast events to other systems or over websockets. Samples of - | each available type of connection are provided inside this array. - | - */ - - 'connections' => [ - - 'pusher' => [ - 'driver' => 'pusher', - 'key' => env('PUSHER_APP_KEY'), - 'secret' => env('PUSHER_APP_SECRET'), - 'app_id' => env('PUSHER_APP_ID'), - 'options' => [ - 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com', - 'port' => env('PUSHER_PORT', 443), - 'scheme' => env('PUSHER_SCHEME', 'https'), - 'encrypted' => true, - 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https', - ], - 'client_options' => [ - // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html - ], - ], - - 'ably' => [ - 'driver' => 'ably', - 'key' => env('ABLY_KEY'), - ], - - 'redis' => [ - 'driver' => 'redis', - 'connection' => 'default', - ], - - 'log' => [ - 'driver' => 'log', - ], - - 'null' => [ - 'driver' => 'null', - ], - - ], - -]; diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 5b729ea..ddb7ec2 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -10,28 +10,6 @@ window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; -/** - * Echo exposes an expressive API for subscribing to channels and listening - * for events that are broadcast by Laravel. Echo and event broadcasting - * allows your team to easily build robust real-time web applications. - */ - -// import Echo from 'laravel-echo'; - -// import Pusher from 'pusher-js'; -// window.Pusher = Pusher; - -// window.Echo = new Echo({ -// broadcaster: 'pusher', -// key: import.meta.env.VITE_PUSHER_APP_KEY, -// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', -// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, -// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, -// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, -// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', -// enabledTransports: ['ws', 'wss'], -// }); - import toastr from 'toastr'; window.toastr = toastr; diff --git a/routes/channels.php b/routes/channels.php deleted file mode 100644 index d811fa4..0000000 --- a/routes/channels.php +++ /dev/null @@ -1,8 +0,0 @@ -id; -});