Skip to content

Commit

Permalink
update restful controller docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 25, 2013
1 parent b504fb8 commit cd5344c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Laravel allows you to easily define a single route to handle every action in a c

**Defining A RESTful Controller**

Route::controller('UserController', 'users');
Route::controller('users', 'UserController');

The `controller` method accepts two arguments. The first is the class name of the controller, while the second is the base URI the controller handles. Next, just add methods to your controller, prefixed with the HTTP verb they respond to:
The `controller` method accepts two arguments. The first is the base URI the controller handles, while the second is the class name of the controller. Next, just add methods to your controller, prefixed with the HTTP verb they respond to:

class UserController extends BaseController {

Expand Down

0 comments on commit cd5344c

Please sign in to comment.