dourangdz750379
2016-08-23 07:51
浏览 88
已采纳

在laravel5中找不到CouchBase类

I use couchbase nosql database by ytake/laravel-couchbase package in my laravel 5.1 project
After install that package and run php artisan serve i got error :

PHP Fatal error:  Class 'CouchbaseN1qlQuery' not found in /var/www/html/eee/vendor/ytake/laravel-couchbase/src/CouchbaseServiceProvider.php on line 71


 [Symfony\Component\Debug\Exception\FatalErrorException]  
 Class 'CouchbaseN1qlQuery' not found  

图片转代码服务由CSDN问答提供 功能建议

我在laravel 5.1项目中通过 ytake / laravel-couchbase 包使用couchbase nosql数据库
安装该软件包并运行 php artisan serve 后出现错误:

  PHP致命错误:在/中找不到类'CouchbaseN1qlQuery' 第71行的var / www / html / eee / vendor / ytake / laravel-couchbase / src / CouchbaseServiceProvider.php 
 
 
 [Symfony \ Component \ Debug \ Exception \ FatalErrorException] 
未找到类'CouchbaseN1qlQuery'  n   
 
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongshuo6185 2017-04-27 16:23
    已采纳

    I had this error for a long time. For me, the problem was that the CLI user couldn't write in the laravel.log when the couchbase client was trying to write a warning to it. Check user permissions.

    点赞 评论

相关推荐 更多相似问题