mirror of
https://github.com/cjango/dcat-vue.git
synced 2025-12-06 14:20:03 +08:00
op
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace Weiwait\DcatVue\Field\Traits;
|
namespace Weiwait\DcatVue\Field\Traits;
|
||||||
|
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
trait FieldCommon
|
trait FieldCommon
|
||||||
{
|
{
|
||||||
protected string $vid;
|
protected string $vid;
|
||||||
@@ -17,7 +19,7 @@ trait FieldCommon
|
|||||||
|
|
||||||
public function makeVid(): static
|
public function makeVid(): static
|
||||||
{
|
{
|
||||||
$this->vid = 'vid' . md5(uuid_create());
|
$this->vid = 'vid' . md5(Str::uuid());
|
||||||
|
|
||||||
$this->addVariables([
|
$this->addVariables([
|
||||||
'vid' => $this->vid,
|
'vid' => $this->vid,
|
||||||
|
|||||||
Reference in New Issue
Block a user