Fenos\Notifynder\Groups\GroupRepository::delete PHP Method

delete() public method

Delete a group.
public delete ( $groupId ) : mixed
$groupId
return mixed
    public function delete($groupId)
    {
        return $this->groupModel->where('id', $groupId)->delete();
    }

Usage Example

 /** @test */
 function it_delete_a_group_by_id()
 {
     $group = $this->createGroup();
     $this->group->delete($group->id);
     $this->assertCount(0, NotificationGroup::all());
 }