protected function destroyPreviousFights()
    {
        // Delete previous fight for this championship
        $arrGroupsId = $this->championship->fightersGroups()->get()->pluck('id');
        if (count($arrGroupsId) > 0) {
            Fight::destroy($arrGroupsId);
        }
    }
protected function destroyPreviousFights()
    {
        // Delete previous fight for this championship
        $arrGroupsId = $this->championship->fightersGroups()->get()->pluck('id');
        if (count($arrGroupsId) > 0) {
            Fight::destroy($arrGroupsId);
        }
    }
protected function destroyPreviousFights ( ) { // Delete previous fight for this championship $ arrGroupsId = $ this -> championship -> fightersGroups ( ) -> get ( ) -> pluck ( 'id' ) ; if ( count ( $ arrGroupsId ) > 0 ) { Fight :: destroy ( $ arrGroupsId ) ; } }
Destroy Previous Fights for demo.
Destroy Previous Fights for demo .