Trying to get property 'title' of non-object (View: C:phplaravellp
esourcesviewsadminproduct_edit.blade.php)
C:phplaravellpappHttpControllersAdminCategoryController inner title line error i think
public static function getParentsTree($category,$title)
{
if ($category->parent_id == 0)
{
return $title;
}
$parent = Category::find($category->parent_id);
***$title = $parent->title. ' > ' . $title;***
return CategoryController::getParentsTree($parent,$title);
}
question from:
https://stackoverflow.com/questions/65648803/laravel-5-getparentstree 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…