+ Cast date when fetch notifications
This commit is contained in:
parent
23c912fa51
commit
88382a73e3
|
@ -28,7 +28,8 @@ class Notification extends Model
|
|||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'read' => 'int'
|
||||
'read' => 'int',
|
||||
'date' => 'datetime:Y-m-d H:i:s'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
|
|
Loading…
Reference in New Issue