title: Laravel 5 getparentsTree
body: <p>Trying to get property 'title' of non-object (View: C:\php\laravellp\resources\views\admin\product_edit.blade.php)</p>
  <p>C:\php\laravellp\app\Http\Controllers\Admin\CategoryController inner title line error i think</p>
  <p>public static function getParentsTree($category,$title)</p>
  <pre><code>{
  
      if ($category-&gt;parent_id == 0)
  
      {
  
          return $title;
  
      }
  
      $parent = Category::find($category-&gt;parent_id);
  
      ***$title = $parent-&gt;title. ' &gt; ' . $title;***
  
  
      return CategoryController::getParentsTree($parent,$title);
  
  }
  </code></pre>