use date format in the validator, and then in the model, create a mutator to handle the date format
this will allow you to just save date to the model
public function setDateAttribute($value)
{
$this->attributes['date'] = $this->parseDate($value);
}
public function parseDate($date=null)
{
if(isset($date))
{
return Carbon::createFromFormat('d M Y',$date);
//or whatever format you are using
}
return null;
}
One thing I noticed, and I don't know if it would ever be an issue (probably not), but if you use createFromFormat(), it automatically fills in the time based on the current time, unless you use a pipe after the format, e.g. d m Y|, then it sets everything after the pipe to 0