From: Vincent Vanwaelscappel Date: Thu, 24 Aug 2023 10:46:06 +0000 (+0200) Subject: fix #6199 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8347c8cf43d79c84d91a61ce3869182393c3b4ae;p=cubist_cms-back.git fix #6199 @0:10 --- diff --git a/src/app/Jobs/URL.php b/src/app/Jobs/URL.php index 8c63257..a8df4ca 100644 --- a/src/app/Jobs/URL.php +++ b/src/app/Jobs/URL.php @@ -3,8 +3,9 @@ namespace Cubist\Backpack\Jobs; use Cubist\Util\PHP; +use Illuminate\Contracts\Queue\ShouldBeUnique; -class URL extends Base +class URL extends Base implements ShouldBeUnique { protected $_url; @@ -37,4 +38,9 @@ class URL extends Base { return $this->_url; } + + public function uniqueId(): string + { + return md5($this->getUrl()); + } }