Explorar o código

add protected $dates

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
cdbb9b7daf
Modificáronse 1 ficheiros con 7 adicións e 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;
     public  $incrementing = false;
 
 
+    protected $dates = [
+        'created_at',
+        'updated_at',
+        'start_at',
+        'end_at'
+    ];
+
 }
 }