예제 #1
0
파일: Collection.php 프로젝트: lytc/sloths
 /**
  * @return array
  */
 public function ids()
 {
     return $this->column($this->model->getPrimaryKey());
 }
예제 #2
0
파일: Url.php 프로젝트: lytc/sloths
 /**
  * @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);
 }