Browse Source

fixed 节点授权可修改权限

兔姬桑 4 năm trước cách đây
mục cha
commit
60065e01d1
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      app/Models/NodeAuth.php
  2. 1 1
      app/Models/NodeCertificate.php

+ 1 - 0
app/Models/NodeAuth.php

@@ -11,6 +11,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
 class NodeAuth extends Model
 {
     protected $table = 'node_auth';
+    protected $fillable = ['key', 'secret'];
 
     public function node(): BelongsTo
     {

+ 1 - 1
app/Models/NodeCertificate.php

@@ -10,5 +10,5 @@ use Illuminate\Database\Eloquent\Model;
 class NodeCertificate extends Model
 {
     protected $table = 'node_certificate';
-    protected $guarded = ['id'];
+    protected $fillable = ['domain', 'key', 'pem'];
 }