Laravel only deleting related models but not the main model

前端 未结 0 710
北海茫月
北海茫月 2021-01-15 06:09

I have a simmple query running as:

$reviews = Review::whereHas(\'units\', function ($q) use ($after_start_unit_ids) {
        $q->whereIn(\'units.id\', $af         


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