I'm having some troubles when i run my laravel project. Every time I try to login or register a new user i get this error:
at HandleExceptions->handleError('8192', 'Method ReflectionParameter::getClass() is deprecated', 'C:\xampp\htdocs\project\vendor\laravel\framework\src\Illuminate\Routing\Route.php', '287') in Route.php line 287
I've already tried to update some values on my composer.json file and then running the composer update
command like it says on this thread but still doesn't work.
My composer.json file is:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.3|^8.0",
"laravel/framework": "^8.54",
"barryvdh/laravel-ide-helper": "^2.2",
"laravelcollective/html": "5.2.*",
"kartik-v/bootstrap-fileinput": "@dev",
"laracasts/flash": "^2.0",
"cohensive/embed": "dev-master",
"chumper/zipper": "0.6.x"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "^9.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
Thanks if you can help me.