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.
use Jenssegers\Mongodb\Model as Eloquent;
class MyModel extends Eloquent {
protected $collection = 'mycollection';
}
*You can also specify the connection name in the model by changing the `connection` property.*
...
...
@@ -76,7 +76,7 @@ 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. For your convenience, there is a `collection` alias for `table` as well as some additional mongodb specific operations like `push` and `pull`.