Is it possible to return a specific index element from a hasmany relationship in Laravel?

前端 未结 0 1380
小蘑菇
小蘑菇 2021-02-02 14:19
$row->sub_category[0]->name

when i checked other questions, i could see that there is option to access the first and last elements, but is there a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题