diff --git a/app/Services/CardService.php b/app/Services/CardService.php index 9eb1fd8..f518f5b 100644 --- a/app/Services/CardService.php +++ b/app/Services/CardService.php @@ -113,7 +113,7 @@ public function store(array $data): Card $card->save(); - return $card; + return $this->show($card->id); }); } @@ -182,7 +182,7 @@ public function update(int $id, array $data): Card $card->updated_by = $userId; $card->save(); - return $card->fresh(); + return $this->show($card->id); }); }