Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.144.132.48
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
beyondcode /
laravel-websockets /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Apps
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Console
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Dashboard
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Exceptions
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Facades
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
HttpApi
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Server
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
Statistics
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
WebSockets
[ DIR ]
drwxr-xr-x
2018-12-04 09:00
QueryParameters.php
694
B
-rw-r--r--
2018-12-04 09:00
WebSocketsServiceProvider.php
3.29
KB
-rw-r--r--
2018-12-04 09:00
Save
Rename
<?php namespace BeyondCode\LaravelWebSockets; use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\AuthenticateDashboard; use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\DashboardApiController; use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage; use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard; use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard; use BeyondCode\LaravelWebSockets\Statistics\Http\Middleware\Authorize as AuthorizeStatistics; use BeyondCode\LaravelWebSockets\Server\Router; use BeyondCode\LaravelWebSockets\Statistics\Http\Controllers\WebSocketStatisticsEntriesController; use BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Route; use BeyondCode\LaravelWebSockets\Apps\AppProvider; use Illuminate\Support\ServiceProvider; use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager; use Illuminate\Support\Str; class WebSocketsServiceProvider extends ServiceProvider { public function boot() { $this->publishes([ __DIR__ . '/../config/websockets.php' => base_path('config/websockets.php'), ], 'config'); if (!class_exists('CreateWebSocketsStatisticsEntries')) { $this->publishes([ __DIR__ . '/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_websockets_statistics_entries_table.php'), ], 'migrations'); } $this ->registerRoutes() ->registerDashboardGate(); $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'websockets'); $this->commands([ Console\StartWebSocketServer::class, Console\CleanStatistics::class, ]); } public function register() { $this->mergeConfigFrom(__DIR__ . '/../config/websockets.php', 'websockets'); $this->app->singleton('websockets.router', function () { return new Router(); }); $this->app->singleton(ChannelManager::class, function () { return new ChannelManager(); }); $this->app->singleton(AppProvider::class, function () { return app(config('websockets.app_provider')); }); } protected function registerRoutes() { Route::prefix(config('websockets.path'))->group(function() { Route::middleware(AuthorizeDashboard::class)->group(function() { Route::get('/', ShowDashboard::class); Route::get('/api/{appId}/statistics', [DashboardApiController::class, 'getStatistics']); Route::post('auth', AuthenticateDashboard::class); Route::post('event', SendMessage::class); }); Route::middleware(AuthorizeStatistics::class)->group(function() { Route::post('statistics', [WebSocketStatisticsEntriesController::class, 'store']); }); }); return $this; } protected function registerDashboardGate() { Gate::define('viewWebSocketsDashboard', function ($user = null) { return app()->environment('local'); }); return $this; } }