[英]Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'APP\Mail\Reverify' not found
[英]Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to undefined function App\needsRehash()
我正在處理一個舊的 laravel 項目,當我啟動項目時一切順利,但是當我嘗試添加用戶(姓名、名字、密碼..)時出現錯誤。 我正在使用 wamp。 我也使用了 xampp 仍然是同樣的問題,我找不到任何解決方案,請幫助我。 這是作曲家。json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"barryvdh/laravel-cors": "^0.11.3",
"doctrine/dbal": "^2.5",
"fideloper/proxy": "~3.3",
"intervention/image": "^2.4",
"ircmaxell/password-compat": "^1.0",
"kylekatarnls/laravel-carbon-2": "^1.0.0",
"laravel/framework": "5.5.*",
"laravel/passport": "4.0.*",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.5",
"nesbot/carbon": "2.22.0 as 1.34.0",
"paragonie/random_compat": "2.*",
"spatie/laravel-medialibrary": "^6.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7",
"laravel/dusk": "^2.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
這是該項目的錯誤路線
public function setPasswordAttribute($input)
{
if ($input)
//Probleme de hashage
$this->attributes['password'] = needsRehash($input) ? Hash::make($input) : $input;
}
嘗試將needsRehash
更改為Hash::needsRehash
。
老實說,我很驚訝 Laravel 應用程序曾經工作過,因為據我所知,框架中從來沒有needsRehash
不是 static 方法。
有關詳細信息,請參閱Laravel 文檔
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.