You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Ticket model is use Illuminate\Database\Eloquent\Model but it won't work with relations to create tickets on users.
It will throw an error Call to a member function prepare() on null
It has to be use Jenssegers\Mongodb\Eloquent\Model.
Please add option to support mongoDB connection.
The text was updated successfully, but these errors were encountered:
Did you add a mongodb configuration in config/databas.php in your laravel app?
Try to extend the Ticket Model, and alter the $connection property.
class Ticket extends \Coderflex\LaravelTicket\Models\Ticket
{
protected$connection = 'mongodb';
//
}
Because I'm not sure, on how to add a DB connection support into the package exactly, if the above solution does not work, feel free to open a PR, and I'll check it ASAP.
MongoDB is supported via the mongodb/laravel-mongodb package, which is officially maintained by MongoDB. Check out the Laravel MongoDB documentation for more information.
MongoDB is supported via the mongodb/laravel-mongodb package, which is officially maintained by MongoDB. Check out the Laravel MongoDB documentation for more information.
In the
Ticket
model isuse Illuminate\Database\Eloquent\Model
but it won't work with relations to create tickets on users.It will throw an error
Call to a member function prepare() on null
It has to be
use Jenssegers\Mongodb\Eloquent\Model
.Please add option to support mongoDB connection.
The text was updated successfully, but these errors were encountered: