title: Base table or view not found: 1146 Table Laravel 5.7
body: <p>Im getting this error when I try to save data to mysql using Laravel 5, other forms and save() methods work fine but this one:</p>
  
  <blockquote>
    <p>SQLSTATE[42S02]: Base table or view not found: 1146 Table 'datatest.about_category' doesn't exist (SQL: insert into <code>about_category</code> (<code>about_id</code>, <code>category_id</code>) values (11, 4))</p>
  </blockquote>
  
  <p>Here is my Controller store method:</p>
  
  <pre><code>public function store(AboutRequest $request)
  {
      $about = new About();
      $about-&gt;title = $request-&gt;title;
      $about-&gt;body = $request-&gt;body;
      $about-&gt;save();
      $about-&gt;categories()-&gt;attach(request('category'));
      return redirect(route('abouts.create'));
  }
  </code></pre>
  
  <p>And here is my model:</p>
  
  <p>About.php</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class About extends Model
  {
      public  $table = "abouts";
      public function categories()
      {
          return $this-&gt;belongsToMany(Category::class);
      }
  }
  </code></pre>
  
  <p>Category .php</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Category extends Model
  {
      protected $table = "categories";
  
      public  $fillable = ['id' , 'name'];
  
      public function abouts(){
          return $this-&gt;belongsToMany(About::class);
      }
  }
  </code></pre>
  
  <p>For abouts table</p>
  
  <pre><code>public function up()
  {
      Schema::create('abouts', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;string('title');
          $table-&gt;text('body');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>For categories table</p>
  
  <pre><code>public function up()
  {
      Schema::create('categories', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;string('name');
          $table-&gt;timestamps();
      });
  }
  </code></pre>