title: Laravel 5.7 Send an email verification on newly created user
body: <p>Based on this <a href="https://laravel.com/docs/5.7/verification" rel="nofollow noreferrer">documentation</a> you can easily create a user email verification when someone signing up by them self, but how to send an email verification when admins created the account for their users?</p>
  
  <p>I already tried with this approach</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Hash;
  use Illuminate\Foundation\Auth\VerifiesEmails;
  
  class TeacherController extends Controller
  {
      use VerifiesEmails;
  
      ... // Other basic functions
  
      public function store(Request $request)
      {
          $rules = [
              'first_name' =&gt; ['string', 'required', 'max:255'],
              'last_name' =&gt; ['string', 'nullable', 'max:255'],
              'email' =&gt; ['string', 'required', 'email', 'max:255', 'unique:users'],
              'password' =&gt; ['string', 'required', 'min:6', 'confirmed'],
          ];
  
          $request-&gt;validate($rules);
  
          $teacher = \App\User::create([
              'first_name' =&gt; $request-&gt;input('first_name'),
              'last_name' =&gt; $request-&gt;input('last_name'),
              'email' =&gt; $request-&gt;input('email'),
              'password' =&gt; Hash::make($request-&gt;input('password')),
              'role' =&gt; 'teacher',
          ]);
  
          $teacher-&gt;sendEmailVerificationNotification();
  
          return redirect()-&gt;route('teachers');
      }
  
      ... // Other basic functions
  
  }
  </code></pre>
  
  <p>but it's not working and no errors at all, but if I use <code>$request-&gt;user()-&gt;sendEmailVerificationNotification();</code> it's working but send email verification for the admin instead. I already googled it but doesn't find the answer I want.</p>
  
  <p>So how to solve this problem? can I achieve it with the default features from laravel or should I created by myself? </p>
  
  <p>EDIT:: Here is the email that coming when i'm using <code>$request-&gt;user()-&gt;sendEmailVerificationNotification();</code>, it's sending to <strong>admin@admin.com</strong> instead <strong>teacher@teacher.com</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ZAKAP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZAKAP.png" alt="enter image description here"></a></p>
  
  <p>EDIT 2::
  I already find the problem, it's because I'm using the <code>VerifiesEmail</code> which is the core of the problems I had. Thanks to @nakov for his helps! :D</p>