Exemple #1
0
 /**
  * @return array
  */
 public function ids()
 {
     return $this->column($this->model->getPrimaryKey());
 }
Exemple #2
0
 /**
  * @param AbstractModel $model
  * @param array $queryParams
  * @return string
  */
 public function delete(AbstractModel $model, array $queryParams = [])
 {
     return $this->to(Inflector::dasherize($model->getTableName()) . '/' . $model->id(), $queryParams);
 }