Laravel.IO: Reverse-Routing with Controller Actions

News

November 5th, 2012

laravelio:

Reverse-routing is generating URLs based on route declarations.

For example the following route declaration tells Laravel to execute the action “register” in the controller “users” when the request’s URI is ‘register’.

// http://mysite.com/register

Route::any(‘register’, ‘users@register’);

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.