🎨 Empêche 2 posts par jour et améliore l'affichage

This commit is contained in:
Shikiryu
2019-09-25 15:20:22 +02:00
parent 31dc160ada
commit e6527a72af
6 changed files with 82 additions and 105 deletions

View File

@@ -23,4 +23,13 @@ class Post extends Model
protected $hidden = [
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'date_post' => 'datetime',
];
}