title: Having trouble with Laravel Breadcrumbs
body: <p>I'm using davejamesmiller's Breadcrumbs package and I have some trouble with getting post category in post view. I want my breadcrumbs to be like this : </p>
  
  <pre><code>Home &gt; Category &gt; Post
  </code></pre>
  
  <p>I defined breadcrumbs like this:</p>
  
  <pre><code>// Home
      Breadcrumbs::for('home', function ($trail) {
      $trail-&gt;push('Home', route('home'));
  });
  
  // Home &gt; [Category]
  Breadcrumbs::for('category', function ($trail, $category) {
      $trail-&gt;parent('home');
      $trail-&gt;push($category-&gt;title, route('category', $category-&gt;slug));
  });
  
  // Home &gt; [Category] &gt; [Post]
  Breadcrumbs::for('post', function ($trail, $post) {
      $trail-&gt;parent('category', $post-&gt;category);
      $trail-&gt;push($post-&gt;title, route('post', $post-&gt;slug));
  });
  </code></pre>
  
  <p>And called this code in the post view template to output breadcrumbs:</p>
  
  <pre><code>{{ Breadcrumbs::render( 'course', $course, $category ) }}
  </code></pre>
  
  <p>But getting this error:</p>
  
  <pre><code>Undefined property: stdClass::$category
  </code></pre>
  
  <p>And this refers to this line of defined breadcrumb: </p>
  
  <pre><code>$trail-&gt;parent('category', $post-&gt;category);
  </code></pre>
  
  <p>My posts table does'nt have category column and I don't know what should I pass as the second parameter of parent method! Should I pass post's category row which is in other table to my post view? What should I pass as second parameter?</p>