What is reverse routing in Laravel?

0 votes
Someone can help me out to understand the concept of reverse routing in laravel?
Mar 17 in Laravel by kartik
• 20,270 points
975 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 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 in Laravel by Niroj
• 43,100 points
57 views
0 votes
1 answer

What is redirection in Laravel?

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

answered Mar 18 in Laravel by Niroj
• 43,100 points
117 views
0 votes
1 answer

What is middleware? How can we register middeleware in Laravel?

Middleware acts as a bridge between a ...READ MORE

answered Mar 18 in Laravel by Niroj
• 43,100 points
198 views
0 votes
1 answer

What is CSRF in Laravel?

CSRF stands for Cross Site Request Forgery is ...READ MORE

answered Mar 19 in Laravel by Niroj
• 43,100 points
83 views
0 votes
1 answer

How to download and install Lavavel framework?

Hey @kartik, First you must have xampp install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
121 views
0 votes
1 answer

Display Laravel in browser by using cmd promt?

Hello, First you need to have laravel install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
42 views
0 votes
1 answer

How can we get started with Laravel through Xampp?

Hii, First you need to start Apache and ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
54 views
0 votes
1 answer

How to change Laravel official name to any customize name?

Hey, You just need to go Laravel folder through ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
53 views
0 votes
1 answer

What is the significant difference between insert() and insertGetId() function in Laravel?

Hello, Insert(): This function is simply used to ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
114 views
0 votes
1 answer

What is Laravel framework? Why one should use Laravel?

Laravel is a PHP web-framework; it utilized ...READ MORE

answered Mar 17 in Laravel by Niroj
• 43,100 points
118 views