Skip to content

Commit

Permalink
Some repository calls have an extra argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheco committed Jan 9, 2015
1 parent 2b3264b commit a14c104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ and then sends those values to the right [view](src/app/views).

The repository interface has a few available methods:

* raw($index) fetches a single raw value from the index.
* get($index) fetches an object from the database.
* raw($index, $default=null) fetches a single raw value from the index, or $default if there is no match.
* get($index, $default=null) fetches an object from the database, or $default if there is no match.
* getModel($model, $id) fetches an object and returns a model.
* getModelOrfail($model, $id) fetches an object and returns a model, if the
object doesn't exist, raises an exception.
Expand Down

0 comments on commit a14c104

Please sign in to comment.