title: Laravel routing slug error Bad Method Call Exception
body: <p>I'm trying to create a route with three slugs, which include category, brand name and product name.</p>
  <p>web.php</p>
  <pre><code>Route::get('/shop/{category:slug}/{brand:slug}/{product:slug}', [ProductController::class, 'index']);
  </code></pre>
  <p>Controller</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Brand;
  use App\Category;
  use App\Product;
  use Illuminate\Http\Request;
  
  class ProductController extends Controller
  {
      public function index(Category $category, Brand $brand, Product $product)
      {
          $product = Product::where('id', $product-&gt;id)-&gt;with('related', function($q) {
              $q-&gt;with('brand')-&gt;with('categories');
          })-&gt;with('brand')-&gt;first();
  
          return view('product', compact('product', 'category'));
      }
  }
  </code></pre>
  <p>For some reason i get this error, which i don't understand why.</p>
  <blockquote>
  <p>BadMethodCallException <strong>Call to undefined method App\Category::brands()</strong></p>
  </blockquote>