fix namespace

This commit is contained in:
freek 2018-11-26 23:31:38 +01:00
parent 74137bb9f4
commit 901db407ce
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class WebSocketsServiceProvider extends ServiceProvider
protected function registerRouteMacro()
{
Route::macro('websocketsDashboard', function($prefix = 'websockets') {
Route::prefix($prefix)->middleware(Authorize::class)->group(function() {
Route::prefix($prefix)->namespace('\\')->middleware(Authorize::class)->group(function() {
Route::get('/', ShowDashboard::class);
Route::post('auth', AuthenticateDashboard::class);
Route::post('event', SendMessage::class);