Browse Source

Merge pull request #750 from robmeijer/develop

Add a note about registering a named route for a controller action.
Taylor Otwell 12 years ago
parent
commit
5cb8b9bfe9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      laravel/documentation/routing.md

+ 4 - 0
laravel/documentation/routing.md

@@ -307,6 +307,10 @@ This routing convention may not be desirable for every situation, so you may als
 
 	Route::get('welcome', array('after' => 'log', 'uses' => 'home@index'));
 
+#### Registering a named route that points to a controller action:
+
+	Route::get('welcome', array('as' => 'home.welcome', 'uses' => 'home@index'));
+
 <a name="cli-route-testing"></a>
 ## CLI Route Testing