nitpicks
This commit is contained in:
parent
9879c1bdad
commit
d9c7111f9d
|
|
@ -35,17 +35,6 @@ class WebSocketsServiceProvider extends ServiceProvider
|
|||
Event::subscribe(EventSubscriber::class);
|
||||
}
|
||||
|
||||
protected function registerRouteMacro()
|
||||
{
|
||||
Route::macro('websocketsDashboard', function($prefix = 'websockets') {
|
||||
Route::prefix($prefix)->namespace('\\')->middleware(Authorize::class)->group(function() {
|
||||
Route::get('/', ShowDashboard::class);
|
||||
Route::post('auth', AuthenticateDashboard::class);
|
||||
Route::post('event', SendMessage::class);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->mergeConfigFrom(__DIR__.'/../config/websockets.php', 'websockets');
|
||||
|
|
@ -63,6 +52,17 @@ class WebSocketsServiceProvider extends ServiceProvider
|
|||
});
|
||||
}
|
||||
|
||||
protected function registerRouteMacro()
|
||||
{
|
||||
Route::macro('websocketsDashboard', function($prefix = 'websockets') {
|
||||
Route::prefix($prefix)->namespace('\\')->middleware(Authorize::class)->group(function() {
|
||||
Route::get('/', ShowDashboard::class);
|
||||
Route::post('auth', AuthenticateDashboard::class);
|
||||
Route::post('event', SendMessage::class);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
protected function registerDashboardGate()
|
||||
{
|
||||
Gate::define('viewWebSocketsDashboard', function ($user = null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue