title: Send a notification to user in Laravel 5.5
body: <p>This is the scenario. I've User A that send via notification to other User B,C,D... a request to join a group. So in laravel I've created the migration and the controller to handle the notification.</p>
  
  <p>This is the code of GroupController</p>
  
  <pre><code>...
  
  foreach ($userINList as $userIN) {
              $userIN = str_replace(' ', '', $userIN);
              $userDBList = User::all();
              foreach ($userDBList as $userDB) {
                  $name = $userDB-&gt;last_name . $userDB-&gt;first_name;
                  $name = str_replace(' ', '', $name);
                  if (strcmp($name, $userIN) == 0) {
                      $newGroup-&gt;users()-&gt;attach($userDB-&gt;id, ['role' =&gt; 'member', 'state' =&gt; 'pending']);
  
                      $notification = User::find($userIN-&gt;id);
                      $notification-&gt;notify(new GroupNotification($newGroup));
  
                  }
              }
  
          }
  
  ...
  </code></pre>
  
  <p>So in <code>$notification</code> I'll try to pass the id of Users that receive the invite and then I use the notify() method to send the notification, but after User A created the group and there aren't notifications to User B, C, D...
  I've included the <code>use Notifiable</code> in group model. So what's the problem? What I've have to do.</p>
  
  <p>Thanks</p>