Selaa lähdekoodia

add protected $dates

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
cdbb9b7daf
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      app/Models/Course.php

+ 7 - 0
app/Models/Course.php

@@ -14,4 +14,11 @@ class Course extends Model
     ];
     public  $incrementing = false;
 
+    protected $dates = [
+        'created_at',
+        'updated_at',
+        'start_at',
+        'end_at'
+    ];
+
 }