title: BadMethodCallException Call to undefined method App\Product::Category()
body: <p>When entering <code>Route::get('product/create', 'ProductController@create')-&gt;name('Product.create');</code> in my URL i get an error </p>
  
  <blockquote>
    <p>BadMethodCallException Call to undefined method App\Product::Category()</p>
  </blockquote>
  
  <p>But the controller still puts data into the database, but does not return 'Succes'</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  use App\Category;
  use App\Product;
  
  use Illuminate\Http\Request;
  
  class ProductController extends Controller
  {
      public function create(Request $request)
      {
          $product = new Product;
          $product-&gt;name = 'God of War';
          $product-&gt;price = 40;
  
          $product-&gt;save();
  
          $category = Category::find([3,4]);
          $product-&gt;Category()-&gt;attach($category);
  
          return 'Success';
      }
  }
  </code></pre>
  
  <p>i can't seem to find the right answer to this. thankyou.</p>