The issue is likely with the format of the date being sent from the Android app. The Laravel date() function expects a date string in the format of "Y-m-d", but the date being sent from the app is in the format of "dd LLLL yyyy".
To fix this, you can update the date format in the Android app to match the expected format in Laravel. Change the line:
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd LLLL yyyy");
to:
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
This will format the date string in the correct format for the date() function in Laravel.
Alternatively, you can update the Laravel code to parse the date string in the format being sent from the app. Change the line:
$fecha = date('Y-m-d',strtotime($datos1Array['fecha']));
to:
$fecha = date_create_from_format('dd LLLL yyyy', $datos1Array['fecha'])->format('Y-m-d');
This will parse the date string in the format "dd LLLL yyyy" and then format it as "Y-m-d" for storage in the database.