I guess, the one line question doesn't explain what I'm looking for well enough. So, here's an example of what I'm talking about: (based on the Laravel4 Routing documentation)
The way I create a route for the controller:
Route::get('user/profile', "UserController@profile" );
The way I create a name for the route so that I can later refer to it when generating URLs:
Route::get('user/profile', array('as' => 'profile', function()
{
//
}));
// Now I can use this
$url = URL::route('profile');
Now, obviously you wouldn't want to write your controllers as functions right in the routes.php
, so how do I create a name like in the 2nd example, but using the controller like the example 1?