- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
运行命令后
php artisan config:cache
返回配置文件的内容加上
[ReflectionException] Class cache.store does not exist
我的 ip 地址上的互联网页面显示了这个
?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | / 'name' => env('APP_NAME', 'Laravel'), / |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This may determine how you prefer to configure various | services your application utilizes. Set this in your ".env" file. | / 'env' => env('APP_ENV', 'production'), / |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | / 'debug' => env('APP_DEBUG', false), / |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | your application so that it is used when running Artisan tasks. | / 'url' => env('APP_URL', 'http://159.203.5.249'), / |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. We have gone | ahead and set this to a sensible default for you out of the box. | / 'timezone' => 'America/Toronto', / |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | / 'locale' => 'en', / |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | / 'fallback_locale' => 'en', / |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | / 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', / |-------------------------------------------------------------------------- | Logging Configuration |-------------------------------------------------------------------------- | | Here you may configure the log settings for your application. Out of | the box, Laravel uses the Monolog PHP logging library. This gives | you a variety of powerful log handlers / formatters to utilize. | | Available Settings: "single", "daily", "syslog", "errorlog" | / 'log' => env('APP_LOG', 'single'), 'log_level' => env('APP_LOG_LEVEL', 'debug'), / |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | / 'providers' => [ / * Laravel Framework Service Providers... / Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class, Illuminate\Mail\MailServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, / * Package Service Providers... / / * Application Service Providers... / App\Providers\AppServiceProvider::class, App\Providers\AuthServiceProvider::class, // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, ], / |-------------------------------------------------------------------------- | Class Aliases |-------------------------------------------------------------------------- | | This array of class aliases will be registered when this application | is started. However, feel free to register as many as you wish as | the aliases are "lazy" loaded so they don't hinder performance. | */ 'aliases' => [ 'App' => Illuminate\Support\Facades\App::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class, 'DB' => Illuminate\Support\Facades\DB::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, 'Notification' => Illuminate\Support\Facades\Notification::class, 'Password' => Illuminate\Support\Facades\Password::class, 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redis' => Illuminate\Support\Facades\Redis::class, 'Request' => Illuminate\Support\Facades\Request::class, 'Response' => Illuminate\Support\Facades\Response::class, 'Route' => Illuminate\Support\Facades\Route::class, 'Schema' => Illuminate\Support\Facades\Schema::class, 'Session' => Illuminate\Support\Facades\Session::class, 'Storage' => Illuminate\Support\Facades\Storage::class, 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, ], ];
我正在使用 putty 通过 ssh 连接到我的 vps 服务器。
最佳答案
从输出来看,您的配置文件似乎有一个不正确的 php 开始标记 ( <?php
)。
关于php - Laravel - php artisan config :cache - [ReflectionException] Class cache. 商店不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46104432/
我正在尝试使用本地化如下, $types = trans('constants.type'); 我已创建 constants.php文件如下(在 config 目录中),这是它的语言文件, /reso
我使用的是 PHPUnit 版本 3.6.2,并且总是可以 PHP ReflectionException: Method suite does not exist in /pathTo/pear/P
我有这个代码: namespace Some\Different\Name; try { $reflect = new ReflectionClass($cl
我正在尝试在 Laravel 控制台命令中执行 Curl 方法,但我收到 ReflectionException .我已经试过了 composer update && composer dump-au
'prakash', 'username'=>'prakash', 'email'=>'rockpokhrel@gmail.com',
我正在尝试在现有数据库之上添加 Doctrine。我让 Doctrine 生成带注释的实体并从那里进行调整。当我尝试加载下面的实体时,出现错误 PHP Fatal error: Uncaught ex
根据文档Stateless HTTP Basic Authentication ,我在Laravel 5.2中使用无状态HTTP基本身份验证构建API,我创建了以下中间件 app/Http/中间件/A
到目前为止,以下添加条件还没有奏效: !(Exception instanceof ReflectionException) !(Exception instanceof \ReflectionExc
我从实体中删除了 $hearAboutIndustry,现在仅在生产服务器中出现以下错误,而在本地和登台服务器上则没有!知道原因或解决方案吗? Property Tete\AdminBundle\En
路由代码 Route::get('/myform', 'Myform@ndex'); 错误是 ReflectionException in Route.php line 264: Method Ap
为了让这更有趣,如果我运行 composer dump-autoload -o 一切正常,但我很好奇为什么当我运行 composer update 时会抛出错误> 首先?我需要查个水落石出。快速修复不
我目前正在尝试设置 phpunit 测试来测试我的 API。问题是我以某种方式无法在没有问题的情况下发送完全相同的请求两次。 我曾尝试更改 phpunit.xml 以查看是否存在问题但没有成功,所以我
我目前正在尝试设置 SonataAdminBundle 以及我的自定义用户包。我的 User Bundle 使用 getParent 方法继承自 Sonata User Bundle,SonataUs
我使用的是struts2-spring,spring-mybatis。我收到此错误: 12:21:18,499 DEBUG insertar:46 - ooo Using Connection [co
我知道我不是第一个遇到这样问题的人。我已经阅读了关于 Stackoverflow 和其他来源的所有现有信息,但它无法解决我的问题,我总是会得到一个 ReflectionException Class
我在运行 php 代码时遇到了类似的错误 ( Uncaught exception 'ReflectionException' )。但是我还没有运气来修复它。 Uncaught exception '
所以在决定创建此问题之前,我阅读了 100 篇关于此的帖子。 这个问题实际上非常具体,而且 100% 可重现。 我创建了一个 git 分支,我们称之为 storeUpdate,并在这个分支中创建了一个
每次我点击提交按钮我都会遇到这个问题 反射异常 类 UserController 不存在 email =$email; $user->first_name=$first_name;
我在玩 Lumen,我通过 Lumen 安装程序安装了它。我做完之后composer install ,我尝试使用 artisan但它会引发以下错误: ReflectionException: Cla
我在 Windows Server 20012 R2 上遇到了 Composer 问题。我正在尝试部署一个网站,每次运行 composer install 或 composer update 时,我都
我是一名优秀的程序员,十分优秀!