We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
I have in model:
protected $casts = [ 'date' => 'date', ];
Does laravel have some ability to set cast format, something like :
protected $casts = [ 'date' => 'date_format:d/m/yyyy', ];
?
Aucun commentaire:
Enregistrer un commentaire