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

create() public method

Create a new group.
public create ( $name ) : Model
$name
return Illuminate\Database\Eloquent\Model
    public function create($name)
    {
        return $this->groupModel->create(compact('name'));
    }

Usage Example

 /** @test */
 function it_create_a_group()
 {
     $groupData = 'mygroup';
     $group = $this->group->create($groupData);
     $this->assertEquals($groupData, $group->name);
 }