title: How to log notifications laravel 8 after fired
body: <p>guys, I create a panel with laravel 8 and create some emails jobs that must send emails to specific users on specific dates it works fine. I created the database with 2 columns user_id (id of the user that email sent to him/er) and type (type of emails such as Weekly, monthly, reset password, etc...) named Emails also.
  I added these lines to my EventserviceProvider that mentioned on the documents</p>
  <p>'Illuminate\Mail\Events\MessageSent' =&gt; ['App\Listeners\LogSentMessage',],</p>
  <p>then I defined these two on my email files (app/mail) these two data will pass to mailjob also then i can catch them on my handle function to use like this:</p>
  <p>Mail::to($user-&gt;email)-&gt;send(new Firstweek($firstname,<strong>$user-&gt;id</strong>,'<strong>week1</strong>'));</p>
  <p>to log these emails have been sent or not then if the email is sent this listener will run and save data to the database. till here all works fine.</p>
  <p>I use the default reset password system of laravel that used notifications. my problem is when I request the reset password after sending the reset password email I face an error related to these requested logs that want to get <strong>user_id</strong> and <strong>type</strong> that needed for Email but I really do not have any idea how I can pass these data to notifications.</p>
  <p>I really need your helps tank you so much.</p>