我使用的是Laravel 5.1。4 | Company B1 || 5 | Company B2 |第二个是关系表(公司A),则应显示此结果: Company A1 (your selection children company)
简而言之,我需要确定关系表中选定的公司是否有父级和以null作为parent_id
在laravel中,我正确地建立了一对多的关系,并且可以使用saveMany函数保存关系。$post->comment()->saveMany($array);Laravel如何自动删除未使用的注释,并且只将最新的注释存储到数据库中?ID 1 Post only has ID 2, ID 3 comment
如何将ID 1 comments