Fatal error: Call to undefined method Illuminate\Foundation\Application::withEloquent() - Cassandra Hi I'm currently implementing cassandra using | composer require sonvq/cassandra:dev-master | https://github.com/sonvq/laravel-cassandra
On Laravel 5.2
/ob_lead/boostrap/app.php
$app->register(sonvq\Cassandra\CassandraServiceProvider::class);
$app->withEloquent();
I have also added:
sonvq\Cassandra\CassandraServiceProvider::class,
to 'providers' => []
on config/app.php
Fatal error: Call to undefined method Illuminate\Foundation\Application::withEloquent() in /home/obiwan/ob_lead/bootstrap/app.php on line 60
Hoping that you could help me out.
I think that code that you post is for usage in Lumen
$app->register('sonvq\Cassandra\CassandraServiceProvider');
$app->withEloquent();
for laravel you only need add Cassandra service provider in config/app.php
sonvq\Cassandra\CassandraServiceProvider::class,
Please sign in or create an account to participate in this conversation.