Date Parse
This commit is contained in:
@@ -32,6 +32,15 @@ class Article extends Model
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be mutated to dates.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $dates = [
|
||||
'published_date',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
|
||||
Reference in New Issue
Block a user