-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Hi guys,
I'm using Laravel 5.2 (PHP 5.6.25 (Mac OS) and the lib is not converting Carbon dates (like Carbon::now(), or something like DateTime(xxxx)) to native ISODate format. For example, when I run Log::where('created_at', '<=', Carbon::now())->get();
it makes the query like {"created_at":{"$lte":{}}}]}
. It works perfectly without dates!
It's my model:
namespace App\Models;
use Jenssegers\Mongodb\Eloquent\Model;
class Log extends Model
{
protected $connection = 'mongodb';
protected $table = 'log';
protected $dates = ['created_at'];
}
My php -i | grep -i mongodb
result:
mongodb
mongodb support => enabled
mongodb version => 1.1.8
mongodb stability => stable
libmongoc version => 1.3.5
mongodb.debug => no value => no value
Metadata
Metadata
Assignees
Labels
No labels