🎨 Empêche 2 posts par jour et améliore l'affichage
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user