Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Feb 14, 2020
1 parent dab749a commit ba8e121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ Same example **now using `curry`**:
Route::get('/', curry('view', 'welcome'));

// Using the global helper
Route::get('/posts', curry(Post::class)->all());
Route::get('post/{id}', curry(Post::class)->find());

// Using the Eloquent macro
Route::get('/posts', Post::curry()->all());
Route::get('post/{id}', Post::curry()->find());
```

### On macros:
Expand Down

0 comments on commit ba8e121

Please sign in to comment.