Код: Выделить всё
Undefined array key 1
at D:\App-PHP\xampp_php_8\htdocs\test-project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:289
285▕ protected function getDateFromLine($line)
286▕ {
287▕ preg_match('/^\[([^\]]+)\]/', $line, $matches);
288▕
➜ 289▕ return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);
290▕ }
291▕
292▕ /**
293▕ * Get the request port from the given PHP server output.
1 D:\App-PHP\xampp_php_8\htdocs\test-project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:289
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}("Undefined array key 1", "D:\App-PHP\xampp_php_8\htdocs\test-project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php")
2 D:\App-PHP\xampp_php_8\htdocs\test-project\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:239
Illuminate\Foundation\Console\ServeCommand::getDateFromLine("27.0.0.1:65342 Accepted")
D:\App-PHP\xampp_php_8\htdocs\test-project>
Неопределенный ключ массива 1
Кроме того, приложение перестает работать. Я не сталкивался с подобной ошибкой в своем предыдущем приложении Laravel, работавшем на сервере Windows. Мое предыдущее приложение — это версия 8, это мое первое приложение Laravel 9 на Windows Server.
Подробнее здесь: https://stackoverflow.com/questions/742 ... isan-serve