From a73846eb1daa915a0ff2bd983a2db6eef34b7b0f Mon Sep 17 00:00:00 2001 From: mahdihty Date: Sun, 14 Mar 2021 12:22:21 +0330 Subject: [PATCH] complete socket notification channel --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 3e524db..03620f7 100644 --- a/routes/api.php +++ b/routes/api.php @@ -5,7 +5,7 @@ $router->get('/ntest', function () { $user = \App\Models\User::find(1); \Illuminate\Support\Facades\Notification::send($user, new \App\Notifications\SocketNotification(['title' => "hello!!!", 'body' => 'sss'])); -}); +})->middleware('bindBusiness'); $router->group(['prefix' => 'actions'], function () use ($router) { $router->group(['prefix' => 'businesses'], function () use ($router) { $router->group(['prefix' => '{business}', 'middleware' => 'bindBusiness'], function () use ($router) {