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
You may also specify additional columns to update:
@@ -545,13 +550,13 @@ User::where('name', 'regex', new \MongoDB\BSON\Regex("/.*doe/i"))->get();
545
550
**NOTE:** you can also use the Laravel regexp operations. These are a bit more flexible and will automatically convert your regular expression string to a MongoDB\BSON\Regex object.
@@ -689,7 +694,7 @@ For more information about model manipulation, check http://laravel.com/docs/elo
689
694
690
695
### Dates
691
696
692
-
Eloquent allows you to work with Carbon/DateTime objects instead of MongoDate objects. Internally, these dates will be converted to MongoDate objects when saved to the database. If you wish to use this functionality on non-default date fields you will need to manually specify them as described here: http://laravel.com/docs/eloquent#date-mutators
697
+
Eloquent allows you to work with Carbon/DateTime objects instead of MongoDate objects. Internally, these dates will be converted to MongoDate objects when saved to the database. If you wish to use this functionality on non-default date fields, you will need to manually specify them as described here: http://laravel.com/docs/eloquent#date-mutators
693
698
694
699
Example:
695
700
@@ -787,7 +792,7 @@ class User extends Eloquent {
787
792
}
788
793
```
789
794
790
-
You access the embedded models through the dynamic property:
795
+
You can access the embedded models through the dynamic property:
791
796
792
797
```php
793
798
$books = User::first()->books;
@@ -849,7 +854,7 @@ Embedded relations will return a Collection of embedded items instead of a query
849
854
850
855
### EmbedsOne Relations
851
856
852
-
The embedsOne relation is similar to the EmbedsMany relation, but only embeds a single model.
857
+
The embedsOne relation is similar to the embedsMany relation, but only embeds a single model.
853
858
854
859
```php
855
860
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
@@ -864,7 +869,7 @@ class Book extends Eloquent {
864
869
}
865
870
```
866
871
867
-
You access the embedded models through the dynamic property:
872
+
You can access the embedded models through the dynamic property:
0 commit comments