php 搜索此错误的解决方案:致命错误:未捕获的错误:未找到类“Illuminate\Foundation\Application”,

muk1a3rh  于 2023-10-15  发布在  PHP
关注(0)|答案(1)|浏览(195)

我在两个地方看到了这个错误。如果我在网站上localhost/united-for-eternity/public作为输出:

Stack trace:
#0 C:\xampp\htdocs\united-for-eternity\artisan(20): require_once()
#1 {main}
  thrown in C:\xampp\htdocs\united-for-eternity\bootstrap\app.php on line 14

Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\xampp\htdocs\united-for-eternity\bootstrap\app.php:14
Stack trace:
#0 C:\xampp\htdocs\united-for-eternity\artisan(20): require_once()
#1 {main}
  thrown in C:\xampp\htdocs\united-for-eternity\bootstrap\app.php on line 14

如果我让一个php工匠服务它也得到显示。如何解决这个错误?我的Bootstrap安装了NPM,并且是最新的。因为它是不可删除的,我也使用 composer ,但它没有依赖.为什么他显示这个错误?
这里是我的文件夹结构和我的package.json:

{
    "name": "united-for-eternity",
    "version": "1.0.0",
    "description": "A social media where you also can create topics and posts",
    "main": "gulpfile.js",
    "browserslist": "> 0.5%, last 2 versions, not dead",
    "scripts": {
        "build": "grunt",
        "build:css": "grunt css",
        "build:js": "grunt js"
    },
    "private": true,
    "author": "Lukas",
    "license": "ISC",
    "dependencies": {
        "bootstrap": "^5.3.2",
        "bootstrap-icons": "^1.8.3",
        "cookieconsent": "^3.1.1",
        "core-js": "^3.33.0",
        "emojione": "^4.5.0",
        "git": "^0.1.5",
        "jodit": "^3.18.5",
        "jquery": "^3.6.0",
        "jquery-ui": "^1.13.1",
        "jquery-ui-touch-punch": "^0.2.3",
        "lodash": "^4.17.21",
        "node": "^18.0.0",
        "npm": "^9.1.3",
        "svgcleaner": "^0.8.1-1"
    },
    "devDependencies": {
        "axios": "^1.1.2",
        "laravel-vite-plugin": "^0.7.2",
        "postcss": "^8.1.14",
        "vite": "^4.0.0"
    }
}

path to App.php and a part of app.php

55ooxyrt

55ooxyrt1#

这是他正在寻找的app.php文件。所以它确实存在于这个文件夹中。不知道他有什么问题

相关问题