title: How to listen messageSent event in laravel 5.5
body: <p>Hi I am a beginner for events and listeners in laravel. So please explain me how to achieve this :  </p>
  
  <p><strong>Aim :</strong>  </p>
  
  <p>Send an email to user. And know whether email is sent or not.  </p>
  
  <p><strong>My Understanding :</strong>  </p>
  
  <p>Laravel has in-built event <code>Illuminate\Mail\Events\MessageSent</code> to fire after email is sent and I have to write a listener to listen the event.  </p>
  
  <p><strong>What I did :</strong>  </p>
  
  <p>To send email :  </p>
  
  <pre><code>Mail::to($receiverAddress)-&gt;send(new SendNewUserPassword($content));
  </code></pre>
  
  <p>This is working fine. Able to send email to user successfully.  </p>
  
  <p>To listen messageSent event, I created this listener :  </p>
  
  <pre><code>&lt;?php
  
  namespace App\Listeners;
  
  use Illuminate\Mail\Events\MessageSent;
  use Illuminate\Queue\InteractsWithQueue;
  use Illuminate\Contracts\Queue\ShouldQueue;
  
  class LogSentMessage
  {
      /**
       * Create the event listener.
       *
       * @return void
       */
      public function __construct()
      {
          //
      }
  
      /**
       * Handle the event.
       *
       * @param  MessageSent  $event
       * @return void
       */
      public function handle(MessageSent $event)
      {
          return $event-&gt;message;
      }
  }  
  </code></pre>
  
  <p>To Register Event :  </p>
  
  <pre><code>protected $listen = [
      'App\Events\Event' =&gt; [
          'App\Listeners\EventListener',
      ],
  
      'Illuminate\Mail\Events\MessageSent' =&gt; [
          'App\Listeners\LogSentMessage',
      ],
  ];
  </code></pre>
  
  <p>In Controller :</p>
  
  <pre><code>event(new MessageSent())  
  </code></pre>
  
  <p>Please guide me <strong>how to return the message handled in Listener from controller</strong>. If my above approach is wrong explain me how to achieve it. This I am using for an api, so if sending mail is success/fail I want to know.</p>