File tree 3 files changed +2
-16
lines changed
3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,6 @@ class Message extends Eloquent
36
36
*/
37
37
protected $ fillable = ['thread_id ' , 'user_id ' , 'body ' ];
38
38
39
- /**
40
- * The attributes that should be mutated to date's.
41
- *
42
- * @var array
43
- */
44
- protected $ dates = ['deleted_at ' ];
45
-
46
39
/**
47
40
* {@inheritDoc}
48
41
*/
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ class Participant extends Eloquent
25
25
protected $ fillable = ['thread_id ' , 'user_id ' , 'last_read ' ];
26
26
27
27
/**
28
- * The attributes that should be mutated to date's .
28
+ * The attributes that should be cast .
29
29
*
30
30
* @var array
31
31
*/
32
- protected $ dates = ['deleted_at ' , ' last_read ' ];
32
+ protected $ casts = ['last_read ' => ' datetime ' ];
33
33
34
34
/**
35
35
* {@inheritDoc}
Original file line number Diff line number Diff line change @@ -35,13 +35,6 @@ class Thread extends Eloquent
35
35
*/
36
36
protected $ fillable = ['subject ' ];
37
37
38
- /**
39
- * The attributes that should be mutated to date's.
40
- *
41
- * @var array
42
- */
43
- protected $ dates = ['deleted_at ' ];
44
-
45
38
/**
46
39
* Internal cache for creator.
47
40
*
You can’t perform that action at this time.
0 commit comments