Fenos\Notifynder\Contracts\NotifynderGroupDB::find PHP Метод

find() публичный Метод

Find a group by ID.
public find ( $groupId ) : Illuminate\Database\Eloquent\Collection | Model | static
$groupId
Результат Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static
    public function find($groupId);

Usage Example

Пример #1
0
 /**
  * Find a group by id
  *
  * @param $group_id
  * @return \Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\Model|static
  * @throws \Fenos\Notifynder\Exceptions\NotifynderGroupNotFoundException
  */
 public function findById($group_id)
 {
     $group = $this->groupRepo->find($group_id);
     if (is_null($group)) {
         $error = "Group Not Found";
         throw new NotifynderGroupNotFoundException($error);
     }
     return $group;
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotifynderGroupDB::find