title: How to fix Class 'App\Http\Controllers\Notification' not found in laravel?
body: <p>I have a Controller which listens to a new Schedule creation and sends the result back to the view via ajax. Inside of it I want to add a Notification to send email to the user once the Schedule cannot be completed due to a lack of resources at that specific date and time.</p>
  
  <p>The problem is that I get the error below:</p>
  
  <pre><code>Class 'App\Http\Controllers\Notification' not found in /laravel/app/Http/Controllers/DadosAgendamentoController.php on line 89
  </code></pre>
  
  <p>The folder structure is this:</p>
  
  <pre><code>-app
      -Http
          -Controllers 
              DadosAgendamentoController.php
      -Notifications
          AgendamentoPendente.php
  </code></pre>
  
  <p><strong>DadosAgendamentoController.php</strong> head code:</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Input;
  use Request;
  use App\Servicos;
  use App\Disponibilidades;
  use App\Estabelecimentos;
  use App\HorariosEstabelecimento;
  use App\Agendamento;
  use App\User;
  use App\Notifications\AgendamentoPendente;
  </code></pre>
  
  <p>line 88 and 89:</p>
  
  <pre><code>$user = User::where('id',1)-&gt;get();
  Notification::send($user, new AgendamentoPendente(1));
  </code></pre>
  
  <p>Trough my Controller I can access all the classes above, but not the <strong>AgendamentoPendente</strong></p>
  
  <p>My goal is to send an email do the admin so he can suggest a new date and time to the client when the resources are not available at the desired date and time.</p>
  
  <p>How can it be fixed? Can I access the class in this Controller? How?</p>