Skip to content

Commit

Permalink
Update Api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
arabnewscms authored May 3, 2023
1 parent e694b30 commit ae4cb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Base/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public function update($id) {

$this->data = $this->validate(request(),
$this->rules('update'), [],
method_exists($this->entity, 'niceName')?
$this->entity::niceName():[]
method_exists($this, 'niceName')?
$this->niceName():[]
);

$this->beforeUpdate($data);
Expand Down

0 comments on commit ae4cb44

Please sign in to comment.