When I try the following in my model, it works as it's the default format.
protected $dateFormat = 'Y-m-d H:i:s';
However when I make the slightest change to it:
protected $dateFormat = 'Y-m-d H:i';
The above won't work and throw me the following error:
The separation symbol could not be found
Unexpected data found.
Unexpected data found.
Trailing data (View: D:\WampServer\www\resources\views\pages\profile.blade.php)
You have not given very much information. When are you getting this error? Is it when you try to save a record or when you try to display the record?
Chances are, you have already saved records in your database in the old format, and by changing the model's format without changing the existing records, it's going to have issues when it tries to format the old values.