Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/app/Providers/PusherConfig.php
Назад
<?php namespace App\Providers; use App\Models\PusherCredentail; use Illuminate\Support\Facades\Log; use Illuminate\Support\ServiceProvider; class PusherConfig extends ServiceProvider { /** * Register services. * * @return void */ public function register() { // } /** * Bootstrap services. * * @return void */ public function boot() { $this->app->booted( function () { try { $shouldSetCustomConfig = true; if ( $shouldSetCustomConfig ) { $pusher = PusherCredentail::first(); $pusherConfig = [ 'driver' => 'pusher', 'key' => $pusher->app_key, 'secret' => $pusher->app_secret, 'app_id' => $pusher->app_id, 'options' => [ 'cluster' => $pusher->app_cluster, 'useTLS' => true, 'encrypted' => true, ], ]; } } catch ( \Exception $e ) { if ( app()->isLocal() ) { // Log::error( $e ); } } // config(['broadcasting.connections.pusher' => $pusherConfig]); } ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка