You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is an element AdminColumn::text. If I use it with relationships with 2 models - everything is OK. But I have One model: Categories with fields id,name,alias,parent_id,created_at,updated_at and I want to show parent category name on view. Can anybody help me in what direction to look for solution. Thanks
The text was updated successfully, but these errors were encountered:
tomastovt
changed the title
Trouble with List data in own model
Trouble with show data from own model
Jan 16, 2017
I get solution with AdminColumn's custom method here is my code: AdminColumn::custom()->setLabel('Parent Category')->setCallback(function($model){ $oParentCategory = Category::where('parent_id', $model->parent_id)->first(); return $oParentCategory->name; })
Hi, there is an element AdminColumn::text. If I use it with relationships with 2 models - everything is OK. But I have One model: Categories with fields id,name,alias,parent_id,created_at,updated_at and I want to show parent category name on view. Can anybody help me in what direction to look for solution. Thanks
The text was updated successfully, but these errors were encountered: