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

find() public method

Find a group by ID.
public find ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static
$groupId
return Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static
    public function find($groupId)
    {
        return $this->groupModel->find($groupId);
    }

Usage Example

 /** @test */
 function it_find_a_group_by_id()
 {
     $group = $this->createGroup();
     $findGroup = $this->group->find($group->id);
     $this->assertEquals($group->id, $findGroup->id);
 }