PHP Interface Fenos\Notifynder\Contracts\NotifynderGroupDB

Mostra file Open project: fenos/notifynder Interface Usage Examples

Public Methods

Method Description
create ( $name ) : Model | static Create a new group.
delete ( $groupId ) : mixed Delete a group.
find ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static Find a group by ID.
findByName ( $name ) : mixed Find a group by name.

Method Details

create() public method

Create a new group.
public create ( $name ) : Model | static
$name
return Illuminate\Database\Eloquent\Model | static

delete() public method

Delete a group.
public delete ( $groupId ) : mixed
$groupId
return mixed

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

findByName() public method

Find a group by name.
public findByName ( $name ) : mixed
$name
return mixed