瀏覽代碼

add fillable

visuddhinanda 1 年之前
父節點
當前提交
6eef747f22
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      api-v8/app/Models/Invite.php

+ 5 - 0
api-v8/app/Models/Invite.php

@@ -8,4 +8,9 @@ use Illuminate\Database\Eloquent\Model;
 class Invite extends Model
 {
     use HasFactory;
+    protected $primaryKey = 'id';
+    protected $casts = [
+        'id' => 'string'
+    ];
+    protected $fillable = ['email', 'id'];
 }