Laravel MongoDb WhereMonth/WhereYear return empty
I m trying to filter my document on created_at with whereMonth/whereYear clauses. But it always returns empty collection. I can't understand why. Example : $collection = MyModel::whereMonth('created_at', '06')->get(); I tried to change type of parameter with '6' or (int) 6...…