Browse Source

id -> string

visuddhinanda 3 years ago
parent
commit
74231cfd09
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/Models/CourseMember.php

+ 5 - 0
app/Models/CourseMember.php

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