【问题标题】:Laravel 4.2 and CassandraLaravel 4.2 和 Cassandra
【发布时间】:2018-08-02 11:38:54
【问题描述】:

如何将 cassandra 与 laravel 4.2 连接起来?

我已经从 datastack 安装了 php-driver,我可以在 laravel 框架之外使用它。

需要帮助。

【问题讨论】:

    标签: cassandra laravel-4.2


    【解决方案1】:

    Cassandra Laravel 安装

    •   Install DataStax PHP Driver for Apache Cassandra on the server
      See https://github.com/datastax/php-driver
      pecl install cassandra
      This command will add cassandra extension in our php. Check cassandra extension using phpinfo();
      Restart php after installing the extension.
    
    
      Common issue:
      https://stackoverflow.com/questions/39348265/cassandra-php-driver-on-macos-class-cassandra-simplestatement-not-found
    
    •   Install laravel cassandra eloquent wrapper and query builder
      See https://github.com/cubettech/lacassa
      See http://cubettech.com/laravel-cassandra/
    
      Add config for database. \config\database.php
      Add new providers in app. \config\app.php => 'Cubettech\Lacassa\CassandraServiceProvider'
    

    【讨论】:

      猜你喜欢
      • 2016-07-11
      • 2015-06-05
      • 1970-01-01
      • 2017-12-10
      • 2015-01-11
      • 2015-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多