2018-11-23 23:06:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
2018-11-26 08:55:06 +00:00
|
|
|
namespace BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers;
|
2018-11-23 23:06:28 +00:00
|
|
|
|
2020-08-13 11:51:18 +00:00
|
|
|
use BeyondCode\LaravelWebSockets\Apps\AppManager;
|
2020-08-18 06:35:09 +00:00
|
|
|
use BeyondCode\LaravelWebSockets\Dashboard\DashboardLogger;
|
2020-03-04 09:58:39 +00:00
|
|
|
use Illuminate\Http\Request;
|
2018-11-23 23:06:28 +00:00
|
|
|
|
2018-11-26 00:01:18 +00:00
|
|
|
class ShowDashboard
|
2018-11-23 23:06:28 +00:00
|
|
|
{
|
2020-08-13 11:51:18 +00:00
|
|
|
public function __invoke(Request $request, AppManager $apps)
|
2018-11-23 23:06:28 +00:00
|
|
|
{
|
2018-11-26 00:01:18 +00:00
|
|
|
return view('websockets::dashboard', [
|
2018-12-01 13:17:32 +00:00
|
|
|
'apps' => $apps->all(),
|
2019-09-04 06:48:06 +00:00
|
|
|
'port' => config('websockets.dashboard.port', 6001),
|
2020-08-18 06:35:09 +00:00
|
|
|
'channels' => DashboardLogger::$channels,
|
|
|
|
|
'logPrefix' => DashboardLogger::LOG_CHANNEL_PREFIX,
|
2018-11-24 22:52:55 +00:00
|
|
|
]);
|
2018-11-23 23:06:28 +00:00
|
|
|
}
|
2018-12-04 21:22:33 +00:00
|
|
|
}
|