1
0
mirror of https://github.com/cjango/dcat-vue.git synced 2025-12-06 14:20:03 +08:00
This commit is contained in:
weiwait
2023-03-22 10:44:34 +08:00
parent c28202c232
commit abf873fc44

View File

@@ -2,6 +2,8 @@
namespace Weiwait\DcatVue\Field\Traits;
use Illuminate\Support\Str;
trait FieldCommon
{
protected string $vid;
@@ -17,7 +19,7 @@ trait FieldCommon
public function makeVid(): static
{
$this->vid = 'vid' . md5(uuid_create());
$this->vid = 'vid' . md5(Str::uuid());
$this->addVariables([
'vid' => $this->vid,