Why do you want to do this? what problem are you trying to solve?
Jun 24, 2018
3
Level 3
Setting custom date results an error
From L5.6 documentation, i can change default date format in a model:
class Flight extends Model
{
/**
* The storage format of the model's date columns.
*
* @var string
*/
protected $dateFormat = 'd.m.Y';
}
However, when i do this, i'm getting this error:
The separation symbol could not be found Unexpected data found. Trailing data
Do i need to update my schema? I am using currently:
$table->timestamps();
Please or to participate in this conversation.