title: Laravel Notifications Base Table not found
body: <p>I am working on a Laravel project. I ran these commands and successfully created notifications table.</p>
  
  <pre><code>php artisan notifications:table
  php artisan migrate
  </code></pre>
  
  <p>All of the things were going perfectly. Later on I created a Model name "NotificationsForAdmin" with migration named "notifications_for_admin", then later on I drooped this table. Now when I am trying to generate some notifications then it is showing me this error, I dont know whats going on I have notifications table in database that is needed for laravel notifications with perfect schema. the error is : </p>
  
  <pre><code>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'followup.notification_for_admins' doesn't exist (SQL: select * from `notification_for_admins` where `notification_for_admins`.`user_id` = 2 and `notification_for_admins`.`user_id` is not null)
  </code></pre>
  
  <p>My notifications is : </p>
  
  <pre><code>&lt;?php
  
  namespace App\Notifications;
  
  use Illuminate\Bus\Queueable;
  use App\User;
  use Illuminate\Notifications\Notification;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Notifications\Messages\BroadcastMessage;
  use Illuminate\Notifications\Messages\MailMessage;
  use App\Events\NewEmailReceivedEvent;
  use Auth;
  
      class NewEmailReceived extends Notification
      {
          use Queueable;
  
          public $sender_id, $receiver_id, $sender_name, $receiver_name, $sender_type, $receiver_type, $type, $recipient, $from_email, $subject, $message, $image, $receiver_image, $attachments, $sizesOfAttachments, $originalFileNames, $thread_id, $id_of_email;
  
          /**
           * Create a new notification instance.
           *
           * @return void
           */
          public function __construct($sender_id, $receiver_id, $sender_name, $receiver_name, $sender_type, $receiver_type, $type, $recipient, $from_email, $subject, $message, $image, $receiver_image, $attachments, $sizesOfAttachments, $originalFileNames, $thread_id, $id_of_email)
          {
              $this-&gt;sender_id = $sender_id;
              $this-&gt;receiver_id = $receiver_id;
              $this-&gt;sender_name = $sender_name;
              $this-&gt;receiver_name = $receiver_name;
              $this-&gt;sender_type = $sender_type;
              $this-&gt;receiver_type = $receiver_type;
              $this-&gt;type = $type;
              $this-&gt;recipient = $recipient;
              $this-&gt;from_email = $from_email;
              $this-&gt;subject = $subject;
              $this-&gt;message = $message;
              $this-&gt;image = $image;
              $this-&gt;receiver_image = $receiver_image;
              $this-&gt;attachments = $attachments;
              $this-&gt;sizesOfAttachments = $sizesOfAttachments;
              $this-&gt;originalFileNames = $originalFileNames;
              $this-&gt;thread_id = $thread_id;
              $this-&gt;id_of_email = $id_of_email;
          }
  
          /**
           * Get the notification's delivery channels.
           *
           * @param  mixed  $notifiable
           * @return array
           */
          public function via($notifiable)
          {
              $notifications = Auth::user()-&gt;notifications;
              if ($notifications[7]-&gt;shown == 1) {
                  return ['mail', 'database'];
              }
              else{
                  return ['database'];
              }
          }
  
          /**
           * Get the array representation of the notification.
           *
           * @param  mixed  $notifiable
           * @return array
           */
          public function toDatabase($notifiable)
          {
              return [
                  'sender_id' =&gt; $this-&gt;sender_id,
                  'receiver_id' =&gt; $this-&gt;receiver_id,
                  'sender_name' =&gt; $this-&gt;sender_name,
                  'receiver_name' =&gt; $this-&gt;receiver_name,
                  'sender_type' =&gt; $this-&gt;sender_type,
                  'receiver_type' =&gt; $this-&gt;receiver_type,
                  'type' =&gt; $this-&gt;type,
                  'recipient' =&gt; $this-&gt;recipient,
                  'from_email' =&gt; $this-&gt;from_email,
                  'subject' =&gt; $this-&gt;subject,
                  'message' =&gt; $this-&gt;message,
                  'image' =&gt; $this-&gt;image,
                  'receiver_image' =&gt; $this-&gt;receiver_image,
                  'attachments' =&gt; $this-&gt;attachments,
                  'sizesOfAttachments' =&gt; $this-&gt;sizesOfAttachments,
                  'originalFileNames' =&gt; $this-&gt;originalFileNames,
                  'thread_id' =&gt; $this-&gt;thread_id,
                  'id_of_email' =&gt; $this-&gt;id_of_email,
              ];
              event(new NewEmailReceivedEvent($NewEmailReceivedRequest));
              return $NewEmailReceivedRequest;
          }
  
          /**
           * Get the mail representation of the notification.
           *
           * @param  mixed  $notifiable
           * @return \Illuminate\Notifications\Messages\MailMessage
           */
          public function toMail($notifiable)
          {
              return (new MailMessage)
                  -&gt;subject("New email from ".$this-&gt;sender_type)
                  -&gt;greeting('Hello!')
                  -&gt;markdown('mails.NewEmailReceived' , ['recipient_name' =&gt; $this-&gt;receiver_name , 'subject' =&gt; $this-&gt;subject , 'mailMessage' =&gt; str_limit($this-&gt;message, 50) , 'avatar' =&gt; $this-&gt;image]);
          }
  
  
          /**
           * Get the array representation of the notification.
           *
           * @param  mixed  $notifiable
           * @return array
           */
          public function toArray($notifiable)
          {
              return [
                  //
              ];
          }
      }
  </code></pre>
  
  <p>I shall be very thankfull if someone could help me on this.</p>