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
Copy file name to clipboardExpand all lines: README.md
+12-5
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,11 @@ Eloquent
61
61
Tell your model to use the MongoDB model and set the collection (alias for table) property. The lower-case, plural name of the class will be used for the collection name, unless another name is explicitly specified.
62
62
63
63
use Jenssegers\Mongodb\Model as Eloquent;
64
-
64
+
65
65
class MyModel extends Eloquent {
66
-
66
+
67
67
protected $collection = 'mycollection';
68
-
68
+
69
69
}
70
70
71
71
*You can also specify the connection name in the model by changing the `connection` property.*
@@ -76,7 +76,7 @@ Query Builder
76
76
-------------
77
77
78
78
The database driver plugs right into the original query builder. When using mongodb connections you will be able to build fluent queries to perform database operations. For your convenience, there is a `collection` alias for `table` as well as some additional mongodb specific operations like `push` and `pull`.
0 commit comments