What is reverse routing in Laravel

0 votes
Someone can help me out to understand the concept of reverse routing in laravel?
Mar 17, 2020 in Laravel by kartik
• 37,510 points
10,285 views

1 answer to this question.

0 votes

 Laravel reverse routing is generating URL's based on route declarations. Reverse routing makes your application so much more flexible

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

//http://mysite.com/login
Route::get(‘login’, ‘users@login’);

Using reverse routing we can create a link to it and pass in any parameters that we have defined. Optional parameters, if not supplied, are removed from the generated link.

{{ HTML::link_to_action('users@login') }}

answered Mar 17, 2020 by Niraj

Related Questions In Laravel

0 votes
1 answer

What is the concept of controller in Laravel?

Hii, In the MVC framework, the letter ‘C’ ...READ MORE

answered Mar 18, 2020 in Laravel by Niroj
• 82,880 points
1,112 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18, 2020 in Laravel by Niroj
• 82,880 points
2,819 views
0 votes
1 answer