Из за чего выходит ошибка в laravel "Malformed UTF-8 characters, possibly incorrectly encoded"

Всем привет. Не пойму почему выходит эта ошибка. Подскажите, пожалуйста. Я делаю запрос:http://127.0.0.1:8000/period/2022-10

Мой контроллер:

public function periodApi($year,$month){
$payments= DB::select("SELECT * from pulkovo where Extract(year from book_date)=$year and  Extract(month from book_date)=$month");
return response()->json($payments, 204);
}

Мой route:

Route::get('/period/{year}-{month}', [App\Http\Controllers\MainController::class, 'periodApi']);

Ответы (0 шт):