我的 Laravel 应用程序使用 WAMP 服务器在我的 PC 上本地成功运行
PHP 7.4.0
Laravel 7.20.0
WAMP 3.2.0
当我在 RedHat 服务器上部署应用程序时,
PHP 7.4.9
Laravel 7.20.0
Appache 2.4.6
RedHat 7
当我发出 HTTP 请求时,遇到以下错误:
Error: Class 'Illuminate\Support\facades\Http' not found in file /var/www/html/chatbot/app/Http/Controllers/BotController.php on line 25
唯一的区别是PHP version
作曲家.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.2.5",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/helpers": "^1.2",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"yajra/laravel-datatables-oracle": "^9.10"
},
"require-dev": {
"filp/whoops": "^2.0",
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"autoload": {
.
.
请注意,在本地,我从一开始就将我的 laravel 版本从 laravel 5 升级到了 laravel 7。
我是否必须在服务器上安装其他任何东西才能发出 HTTP 请求?
元芳怎么了