Laravel this is not only a practical framework, it is also a programming style
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