Laravel

Laravel and carbon date fields

Posted

If you have date columns in your table then you should define them as dates in your model. Eg.

class Photo extends Model {

   protected $dates = [ 'date_taken' ];

}