diff --git a/app/Repositories/DesignRepository.php b/app/Repositories/DesignRepository.php index e9c979e5e4a5..f63e54b45ec3 100644 --- a/app/Repositories/DesignRepository.php +++ b/app/Repositories/DesignRepository.php @@ -11,6 +11,7 @@ namespace App\Repositories; +use App\Utils\Ninja; use App\Models\Design; use Illuminate\Support\Str; @@ -54,4 +55,20 @@ class DesignRepository extends BaseRepository return $design; } + + /** + * @param $entity + */ + public function restore($design) + { + + $design->name = str_ireplace("_deleted_", "_restored_", $design->name); + + parent::restore($design); + + return $design; + + } + + }