title: Laravel 5.3 Trait not found
body: <p>Hello i am trying to use a trait from controller in my register controller but it can't seem to find it</p>
  
  <p>the error message:</p>
  
  <pre><code>Trait 'MailVerification' not found
  </code></pre>
  
  <p>The class in which i want to use the trait</p>
  
  <pre><code>namespace App\Http\Controllers\Auth;
  
  use App\User;
  use Validator;
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\RegistersUsers;
  
  class RegisterController extends Controller
  {
      use RegistersUsers;
      use MailVerification;
  </code></pre>
  
  <p>Here i call the function</p>
  
  <pre><code> protected function create(array $data)
   {
      $mail = $data['email'];
  
      $this-&gt;sendVerification($mail);
  </code></pre>
  
  <p>Here is the trait in the class i am trying to import it from</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Http\Requests;
  use App\Mail\TestMail;
  use Illuminate\Support\Facades\Mail;
  use App\Http\Controllers\Controller;
  use Session;
  
  trait MailVerification
  {
      public function sendVerification($mail)
      {
          $verification_code = str_random(30);
          Mail::send('mail.verify', ['verification_code' =&gt; $verification_code, 'mail' =&gt; $mail], function ($message) use ($mail)
          {
              $message-&gt;from('test@laravel.com');
              $message-&gt;to($mail);
          });
          Session::flash('message', "Please check you're email to verify your account");
  
          return redirect('/');
      }   
  }
  
  class MailController extends Controller
  {
  </code></pre>
  
  <p>I have the trait outside of my class i don't know if this is correct but it was giving me an error while it was inside the class.</p>