title: how to pass dynamic content(content which is coming from database) to send mail in laravel 5.4
body: <p>I m new to laravel.i have table email_template and want to send mail to user when user forgot password.i m fetching content dynamically from database but i dont know how to pass it to mail function in laravel.</p>
  
  <p>Mail::send($posts['email_template'], ['USER' =>$post['user] ], function($message)
          {</p>
  
  <pre><code>        $message-&gt;from('test@gmail.com')-&gt;subject('Welcome to laravel');
  
          $message-&gt;to('test8@gmail.com');
  
      });
  </code></pre>
  
  <p>where $posts['email_template'] is a content which i want to send and user is a variable which i want to replace in content</p>