Method | Description | |
---|---|---|
destroy ( String $id, array $opts ) : boolean | Destroys the model with the given ID and options. | |
index ( array $opts ) : [Model] | Gets all of the available models with the options. | |
show ( String $id, array $opts ) : |
Gets the model with the given ID and options. | |
store ( array $data, array $opts ) : |
Creates a new model. | |
update ( String $id, array $data, array $opts ) : |
Updates an existing model. |
Method | Description | |
---|---|---|
constructStore ( |
||
constructUpdate ( |
||
fire ( boolean $allow, String $event, array $opts, array $extra ) | Fires an event. | |
format ( |
Formats the model(s) before returning. | |
where ( array $opts ) : Jenssegers\Mongodb\Eloquent\Builder | Constructs a query restricted by the given options. |
abstract protected constructStore ( |
||
$model | ||
$data | array | |
$opts | array |
abstract protected constructUpdate ( |
||
$model | ||
$data | array | |
$opts | array |
protected format ( |
||
$model | ||
return |