row->{$this->actions->parent()->getKeyName()}; } /** * 获取行数据. * * @return \Illuminate\Database\Eloquent\Model */ public function getRow() { return $this->row; } /** * 获取资源路径. * * @return string */ public function resource() { return $this->actions->parent()->resource(); } public function getActions() { return $this->actions; } public function setParent(Actions $actions) { $this->actions = $actions; } public function setRow($row) { $this->row = $row; } }