gpt4 book ai didi

php - fatal error : Uncaught exception 'ReflectionException'

转载 作者:搜寻专家 更新时间:2023-10-31 22:00:53 24 4
gpt4 key购买 nike

我在运行 php 代码时遇到了类似的错误 ( Uncaught exception 'ReflectionException' )。但是我还没有运气来修复它。

Uncaught exception 'ReflectionException' with message 'Class path.base does not exist' in /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Container/Container.php:504 Stack trace: 

#0 /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Container/Container.php(504): ReflectionClass->__construct('path.base')

#1 /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Container/Container.php(428): Illuminate\Container\Container->build('path.base', Array)

#2 /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(462): Illuminate\Container\Container->make('path.base', Array)

#3 /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Container/Container.php(806): Illuminate\Foundation\Application->make('path.base')

#4 /home/localblu/staging/bootstrap/start.php(11): Illuminate\Container\Container->offsetGet('path.base')

#5 /home/localblu/staging/public/index.php(35): require_once('/home/localblu/...')

#6 {main} thrown in /home/localblu/staging/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 504

这是我的 composer.json 文件:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"phpunit/phpunit": "3.7.*",
"davejamesmiller/laravel-breadcrumbs": "~2.3"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"

你们能帮我解决这个问题吗?

最佳答案

运行

 composer dump-autoload

如评论中所述或

 composer dump-autoload -o

这解决了我的问题

关于php - fatal error : Uncaught exception 'ReflectionException' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29639751/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com