Как я могу подключить cassandra к laravel 4.2?
Я уже установил php-драйвер из стека данных и могу использовать его вне фреймворка laravel.
Нужна помощь.
Как я могу подключить cassandra к laravel 4.2?
Я уже установил php-драйвер из стека данных и могу использовать его вне фреймворка 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'