If i now try Carbon::createFromFormat('d-m-yyyy', $date)->format('Y-m-d'); i still get the same error message.
If i try your code Carbon::createFromFormat('Y-m-d', $date); i get Trailing data
// replace the point from the european date format with a dash
$date = str_replace('.', '-', $request->input('delivery_date'));
// create the mysql date format
$carbon->createFromFormat('d-m-Y', $date)->toDateString();
The first argument should be the date format that the datepicker is submitting; the second argument is the raw input the datepicker submits. The last argument is the desired format you want Carbon to format the date to.