Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kamalpal's avatar

using Spark with MongoDB

I am trying to use Spark with MongoDB, therefore I've included jenssegers/mongodb and configured as it requires, It works with Jenssegers\Mongodb\Eloquent\Model and throws error while using Illuminate\Database\Eloquent\Model.

Is there any way to override Illuminate\Database\Eloquent\Model to use Jenssegers\Mongodb\Eloquent\Model ?

0 likes
1 reply
theantichris's avatar

I attempted to setup Spark with MongoDB this morning and received this error during registration.

Call to a member function beginTransaction() on null

I think to get past your issue overridding the Auth/User model to use Mongo model will fix it.

Please or to participate in this conversation.