Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
6e26aed6
Commit
6e26aed6
authored
Jan 20, 2020
by
Alex Renoki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
4ec34422
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
README.md
README.md
+13
-2
No files found.
README.md
View file @
6e26aed6
...
@@ -27,13 +27,16 @@ Table of contents
...
@@ -27,13 +27,16 @@ Table of contents
-
[
MongoDB-specific Geo operations
](
#mongodb-specific-geo-operations
)
-
[
MongoDB-specific Geo operations
](
#mongodb-specific-geo-operations
)
-
[
Inserts, updates and deletes
](
#inserts-updates-and-deletes
)
-
[
Inserts, updates and deletes
](
#inserts-updates-and-deletes
)
-
[
MongoDB specific operations
](
#mongodb-specific-operations
)
-
[
MongoDB specific operations
](
#mongodb-specific-operations
)
-
[
Relationships
](
#relationships
)
-
[
Relationships
](
#relationships
)
-
[
Basic Usage
](
#basic-usage-1
)
-
[
belongsToMany and pivots
](
#belongstomany-and-pivots
)
-
[
belongsToMany and pivots
](
#belongstomany-and-pivots
)
-
[
EmbedsMany Relationship
](
#embedsmany-relationship
)
-
[
EmbedsMany Relationship
](
#embedsmany-relationship
)
-
[
EmbedsOne Relations
](
#embedsone-relations
)
-
[
EmbedsOne Relations
](
#embedsone-relations
)
-
[
Query Builder
](
#query-builder
)
-
[
Query Builder
](
#query-builder
)
-
[
Basic Usage
](
#basic-usage-2
)
-
[
Available operations
](
#available-operations
)
-
[
Available operations
](
#available-operations
)
-
[
Schema
](
#schema
)
-
[
Schema
](
#schema
)
-
[
Basic Usage
](
#basic-usage-3
)
-
[
Geospatial indexes
](
#geospatial-indexes
)
-
[
Geospatial indexes
](
#geospatial-indexes
)
-
[
Extending
](
#extending
)
-
[
Extending
](
#extending
)
-
[
Cross-Database Relations
](
#cross-database-relations
)
-
[
Cross-Database Relations
](
#cross-database-relations
)
...
@@ -719,7 +722,10 @@ DB::collection('users')
...
@@ -719,7 +722,10 @@ DB::collection('users')
$user
->
unset
(
'note'
);
$user
->
unset
(
'note'
);
```
```
### Relationships
Relationships
-------------
### Basic Usage
The only available relationships are:
The only available relationships are:
-
hasOne
-
hasOne
...
@@ -927,6 +933,9 @@ $book->author()->save($newAuthor);
...
@@ -927,6 +933,9 @@ $book->author()->save($newAuthor);
Query Builder
Query Builder
-------------
-------------
### Basic Usage
The database driver plugs right into the original query builder.
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.
When using MongoDB connections, you will be able to build fluent queries to perform database operations.
...
@@ -952,6 +961,8 @@ Schema
...
@@ -952,6 +961,8 @@ Schema
------
------
The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes.
The database driver also has (limited) schema builder support. You can easily manipulate collections and set indexes.
### Basic Usage
```
php
```
php
Schema
::
create
(
'users'
,
function
(
$collection
)
{
Schema
::
create
(
'users'
,
function
(
$collection
)
{
$collection
->
index
(
'name'
);
$collection
->
index
(
'name'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment