Explorar el Código

add protected $dates

visuddhinanda hace 2 años
padre
commit
cdbb9b7daf
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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'
+    ];
+
 }