nitpicks
This commit is contained in:
parent
7c0eadec2f
commit
41796a63a5
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||||
<title>WebSockets Console</title>
|
<title>WebSockets Dashboard</title>
|
||||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||||
<script
|
<script
|
||||||
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
src="https://code.jquery.com/jquery-3.3.1.min.js"
|
||||||
|
|
@ -5,7 +5,7 @@ namespace BeyondCode\LaravelWebsockets\Http\Controllers;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Contracts\Broadcasting\Broadcaster;
|
use Illuminate\Contracts\Broadcasting\Broadcaster;
|
||||||
|
|
||||||
class AuthenticateConsole
|
class AuthenticateDashboard
|
||||||
{
|
{
|
||||||
public function __invoke(Request $request, Broadcaster $broadcaster)
|
public function __invoke(Request $request, Broadcaster $broadcaster)
|
||||||
{
|
{
|
||||||
|
|
@ -5,11 +5,11 @@ namespace BeyondCode\LaravelWebsockets\Http\Controllers;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use BeyondCode\LaravelWebSockets\ClientProviders\ClientProvider;
|
use BeyondCode\LaravelWebSockets\ClientProviders\ClientProvider;
|
||||||
|
|
||||||
class ShowConsole
|
class ShowDashboard
|
||||||
{
|
{
|
||||||
public function __invoke(Request $request, ClientProvider $clients)
|
public function __invoke(Request $request, ClientProvider $clients)
|
||||||
{
|
{
|
||||||
return view('websockets::console', [
|
return view('websockets::dashboard', [
|
||||||
'clients' => $clients->all()
|
'clients' => $clients->all()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use BeyondCode\LaravelWebsockets\Http\Controllers\AuthenticateConsole;
|
use BeyondCode\LaravelWebsockets\Http\Controllers\AuthenticateDashboard;
|
||||||
use BeyondCode\LaravelWebsockets\Http\Controllers\SendMessage;
|
use BeyondCode\LaravelWebsockets\Http\Controllers\SendMessage;
|
||||||
use BeyondCode\LaravelWebsockets\Http\Controllers\ShowConsole;
|
use BeyondCode\LaravelWebsockets\Http\Controllers\ShowDashboard;
|
||||||
|
|
||||||
Route::get('/', ShowConsole::class);
|
Route::get('/', ShowDashboard::class);
|
||||||
Route::post('/auth', AuthenticateConsole::class);
|
Route::post('/auth', AuthenticateDashboard::class);
|
||||||
Route::post('/event', SendMessage::class);
|
Route::post('/event', SendMessage::class);
|
||||||
Loading…
Reference in New Issue