Explorar el Código

'id' => 'string'

visuddhinanda hace 3 años
padre
commit
b519492d07
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Models/ArticleCollection.php

+ 3 - 0
app/Models/ArticleCollection.php

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