Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nilportugues committed Sep 8, 2015
1 parent 12cc826 commit ed900c9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ The named routes belong to the `app/Http/routes.php`. Here's a sample for the ro
```php
Route::get(
'/user/{id}',
['as' => 'get_user', 'uses' => 'UserController@getPostAction']
['as' => 'get_user', 'uses' => 'UserController@getOneUserAction']
);

Route::get(
'/user',
['as' => 'get_users', 'uses' => 'UserController@getAllUsersAction']
);

//...
Expand All @@ -162,8 +167,13 @@ Route::get(

```php
$app->get(
'/user/{postId}',
['as' => 'get_user', 'uses' => 'UserController@getPostAction']
'/user/{id}',
['as' => 'get_user', 'uses' => 'UserController@getOneUserAction']
);

$app->get(
'/user',
['as' => 'get_users', 'uses' => 'UserController@getAllUsersAction']
);

//...
Expand Down

0 comments on commit ed900c9

Please sign in to comment.