visuddhinanda 1 год назад
Родитель
Сommit
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'];
 }