首页 文章

Laravel - php artisan config:cache - [ReflectionException]类cache.store不存在

提问于
浏览
0

运行命令后

php artisan config:cache

它返回配置文件的内容

[ReflectionException] Class cache.store does not exist

我ip地址的网页显示了这一点

?php return [/ * | ------------------------------------------ -------------------------------- |申请名称| ----------------------------------------------- --------------------------- | |此值是应用程序的名称 . |时使用此值框架需要将应用程序的名称放在通知或|中应用程序或其包所要求的任何其他位置 . | /'name'=> env('APP_NAME','Laravel'),/ | ------------------------------- ------------------------------------------- |应用环境| ----------------------------------------------- --------------------------- | |此值确定您的应用程序当前的“环境”运行 . 这可能决定你喜欢如何配置各种|您的应用程序使用的服在“.env”文件中设置此项 . | /'env'=> env('APP_ENV','production'),/ | ------------------------------- ------------------------------------------- | Application Debug Mode | ---------------------------------------------- ---------------------------- | |当您的应用程序处于调试模式时,带有详细的错误消息堆栈跟踪将显示在您的|中发生的每个错误上应用 . 如果禁用,则会显示一个简单的通用错误页面 . | /'debug'=> env('APP_DEBUG',false),/ | --------------------------------- ----------------------------------------- |应用程序URL | ----------------------------------------------- --------------------------- | |使用|时,控制台使用此URL正确生成URL Artisan命令行工具 . 您应该将其设置为|的根您的应用程序,以便在运行Artisan任务时使用它 . | /'url'=> env('APP_URL','http://159.203.5.249'),/ | ------------------------- ------------------------------------------------- | Application Timezone | ----------------------------------------------- --------------------------- | |您可以在此处指定应用程序的默认时区,|将由PHP日期和日期时间函数使用 . 我们走了|提前并将此设置为开箱即用的合理默认值 . | /'timezone'=>'America / Toronto',/ | ------------------------------------ -------------------------------------- |应用程序区域设置配置| ---------------------------------------------- ---------------------------- | |应用程序区域设置确定将使用的默认区域设置由翻译服务提供商 . 您可以自由设置此值到应用程序将支持的任何语言环境 . | /'locale'=>'en',/ | -------------------------------------- ------------------------------------ | Application Fallback Locale | ---------------------------------------------- ---------------------------- | |回退区域设置确定当前的区域设置时使用的区域设置不可用 . 您可以更改值以对应于|中的任何一个通过您的应用程序提供的语言文件夹 . | /'fallback_locale'=>'en',/ | -------------------------------------- ------------------------------------ |加密密钥| ----------------------------------------------- --------------------------- | |该密钥由Illuminate加密器服务使用,应设置为|随机的,32个字符的字符串,否则这些加密的字符串|不安全 . 请在部署应用程序之前执行此操作! | /'key'=> env('APP_KEY'),'cipher'=>'AES-256-CBC',/ | ---------------------- -------------------------------------------------- - |记录配置| ----------------------------------------------- --------------------------- | |您可以在此处配置应用程序的日志设置 . 出于|在这个盒子里,Laravel使用Monolog PHP日志库 . 这给了|你可以使用各种强大的日志处理程序/格式化程序 . | |可用设置:“single”,“daily”,“syslog”,“errorlog”| /'log'=> env('APP_LOG','single'),'log_level'=> env('APP_LOG_LEVEL','debug'),/ | --------------- -------------------------------------------------- --------- |自动加载服务提供商| ---------------------------------------------- ---------------------------- | |此处列出的服务提供商将自动加载到|请求您的申请 . 随意添加自己的服务|此数组用于向应用程序授予扩展功能 . | / '提供商'=> [/ * Laravel框架服务提供商... /照亮\验证\ AuthServiceProvider ::类,照亮\广播\ BroadcastServiceProvider ::类,照亮\总线\ BusServiceProvider ::类,照亮\缓存\ CacheServiceProvider: :类,照亮\基金会\供应商\ ConsoleSupportServiceProvider ::类,照亮\ Cookies \ CookieServiceProvider ::类,照亮\数据库\ DatabaseServiceProvider ::类,照亮\加密\ EncryptionServiceProvider ::类,照亮\文件系统\ FilesystemServiceProvider ::类,照亮\基金会\供应商\ FoundationServiceProvider ::类,照亮\散列\ HashServiceProvider ::类,照亮\邮件\ MailServiceProvider ::类,照亮\通知\ NotificationServiceProvider ::类,照亮\分页\ PaginationServiceProvider ::类,照亮\管道\ PipelineServiceProvider :: class,Illuminate \ Queue \ QueueServiceProvider :: class,Illuminate \ Redis \ RedisServiceProvider :: class,Illuminate \ Auth \ Passwords \ PasswordResetServiceP rovider ::类,照亮\ Session \ SessionServiceProvider ::类,照亮\翻译\ TranslationServiceProvider ::类,照亮\确认\ ValidationServiceProvider ::类,照亮\查看\ ViewServiceProvider ::类,/ *封装服务供应商... / / *应用服务提供商... /应用程序\供应商\ AppServiceProvider ::类,应用软件\供应商\ AuthServiceProvider ::类,//应用程序\供应商\ BroadcastServiceProvider ::类,应用软件\供应商\ EventServiceProvider ::类,应用软件\供应商\ RouteServiceProvider :: class,],/ | ---------------------------------------- ---------------------------------- |类别名| ----------------------------------------------- --------------------------- | |当此应用程序|时,将注册此类别名的数组开始了 . 但是,随意注册尽可能多的|别名是“懒惰”加载,因此它们不会妨碍性能 . | * /'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'= >照亮\支持\ Facades \ Mail :: class,'不tification'=> 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 \支持\ 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服务器 .

1 回答

  • 4

    根据输出判断,您的配置文件似乎有一个不正确的php开始标记( <?php ) .

相关问题