Browse Source

complete socket notification channel

mohammad
mahdihty 4 years ago
parent
commit
a73846eb1d
  1. 2
      routes/api.php

2
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) {

Loading…
Cancel
Save