title: Argument 1 passed to App\Mail\SurveyMail::__construct() must be an instance of App\Mail\User, array give
body: <p>I'm trying to send emails to the users who have been accepted by the admin using mailable api in Laravel 5.3.</p>
  
  <pre><code>class SurveyMail extends Mailable
  {
      use Queueable, SerializesModels;
  
      public $user;
      /**
       * Create a new message instance.
       *
       * @return void
       */
      public function __construct(User $user)
      {
          $this-&gt;user=$user;
      }
  
      /**
       * Build the message.
       *
       * @return $this
       */
      public function build()
      {
          return $this-&gt;view('mail.send')
          -&gt;from('monsite@chezmoi.com');
      }
  </code></pre>
  
  <p>and this is my controller</p>
  
  <pre><code> class EmailController extends Controller
  {
      public function send(Request $request,User $user)
      {    
           Mail::to($user)
           -&gt;send(new SurveyMail ($request-&gt;except('_token')));
      }
  }
  </code></pre>
  
  <p>the view:</p>
  
  <pre><code>&lt;body style="background: black; color: white"&gt;
   &lt;h2&gt;Prise de contact sur mon beau site&lt;/h2&gt;
      &lt;p&gt;Réception d'une prise de contact avec les éléments suivants :&lt;/p&gt;
      &lt;ul&gt;
  
        &lt;li&gt;&lt;strong&gt;Nom&lt;/strong&gt; : {{ $user-&gt;name }}&lt;/li&gt;
        &lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt; : {{ $user-&gt;email }}&lt;/li&gt;
  
  
  &lt;/body&gt;
  </code></pre>
  
  <p>it seems that the argument <code>User</code> which is passed to the constructor is not accepted. Please, how can I fix this?</p>