title: How to make custom email verification (Laravel 5.8)?
body: <p>I can make email verification using default template from Laravel 5.8.</p>
  
  <p>Now, I want to customize the email. </p>
  
  <p>Can you help me? </p>
  
  <p>I tried to follow instructions from this: <a href="https://medium.com/@lordgape/custom-verification-email-notification-laravel-5-8-573ba3183ead" rel="nofollow noreferrer">https://medium.com/@lordgape/custom-verification-email-notification-laravel-5-8-573ba3183ead</a>. There is no error, but no email sent. </p>
  
  <p>When I switch back to default verification, the default email is sent.</p>
  
  <p>Edit:</p>
  
  <p>The steps I tried so far: </p>
  
  <ul>
  <li>Create a mailable for email verification.</li>
  <li>Create views for new email template </li>
  <li>override toMailUsing() using the following code in AppServiceProvider.php:</li>
  </ul>
  
  <pre><code>VerifyEmail::toMailUsing(function ($notifiable){
                  $verifyUrl = URL::temporarySignedRoute(
                      'verification.verify',
                      Carbon::now()-&gt;addMinutes(Config::get('auth.verification.expire', 60)),
                      ['id' =&gt; $notifiable-&gt;getKey()]
                  );
  
                  // dd($notifiable);
                  return new EmailVerification($verifyUrl, $notifiable);
              });
  </code></pre>
  
  <ul>
  <li>edit mailable, add two variable: $verifyUrl and $user. </li>
  <li>edit __construct function:</li>
  </ul>
  
  <pre><code>public function __construct($url, User $user)
      {
          $this-&gt;user = $user;
          $this-&gt;verifyUrl = $url;
      }
  </code></pre>
  
  <ul>
  <li>edit build() function in mailable, add return $this->view('emails.verifyUser'); (views of custom template).</li>
  <li>No error, "please verify your email" page is shown like usual. But no email sent.</li>
  </ul>