Date Parse

This commit is contained in:
2020-08-14 03:31:57 +05:00
parent 79b2b7ea36
commit a0cb23668c
3 changed files with 11 additions and 2 deletions

View File

@@ -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.