title: call an event in laravel
body: <p>I call an event this way:</p>
  
  <pre><code>event(new NewsLetterActivation($user));
  </code></pre>
  
  <p><strong>and in event:</strong></p>
  
  <pre><code>public $user;
  public function __construct(User $user)
  {
      $this-&gt;user = $user;
  }
  </code></pre>
  
  <p>It works.</p>
  
  <p>Now In sometimes, I have an extra string variable and also may I did not have
  an $user ($user is empty or null).</p>
  
  <p>How can I call it?</p>
  
  <p>I try this:</p>
  
  <pre><code>event(new NewsLetterActivation(null,'a@a.com'));
  </code></pre>
  
  <p>and in event:</p>
  
  <pre><code>public function __construct(User $user,$email=null)
  {
          $this-&gt;user = $user;
          $this-&gt;email= $email;
  }
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>Type error: Argument 1 passed to App\Events\NewsLetterActivation::__construct() must be an instance of App\Events\User, null given
  </code></pre>