I encountered deprecated errors in my application and don't know how to disable it in Laravel.
Deprecated: Carbon\Traits\Date :: getDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\laravel-c45\vendor\nesbot\carbon\src\Carbon\Traits\Date.php on line 1394
Deprecated: Carbon\Traits\Date :: setDaysFromStartOfWeek(): Implicitly marking parameter $weekStartsAt as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\laravel-c45\vendor\nesbot\carbon\src\Carbon\Traits\Date.php on line 1412
Deprecated: Carbon\Traits\Date :: utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\laravel- c45\vendor\nesbot\carbon\src\Carbon\Traits\Date.php on line 1481
...
Currently, I'm working on Laravel project, and this project have been untouched for a week or two. In the meantime, I worked on another project and upgraded my PHP version. Now, when I'm back into this project again, these errors are displayed in the application, and I want to disable the logging in this project. If you have a way to disable the logging in Laravel, please let me know.
php artisan --version--to put it simply, it comes up when I usephp artisancommands.composer updateto get the latest carbon version which does seem to be using explicitly nullable types