I have a quite simple problem.. I use the Carbon::parse($date) function with $date = \'15.15.2015\'. Of course it can not return a valid string because
Carbon::parse($date)
$date = \'15.15.2015\'
Try this
$birth_date = Carbon::createFromFormat('dmy', $birth_date_mark)->startOfDay(); if ($birth_date->format('dmy') !== $birth_date_mark) { throw new OperationException(trans('exception.invalid_birth_date')); }