I found the problem in laragon:
To fix this error, which is related to the PHP 8.3.1 version in Laragon, you must also upgrade the Apache version of Laragon to: httpd-2.4.58 VS17
To upgrade Apache in Laragon, download the Apache zip file according to your system and extract it in the path: C:\laragon\bin\apache and empty the contents of the apache24 folder in this path