adspace


How to create route name in laravel 5?

Answer Posted / Juned Ahmad

In Laravel 5, you can create a named route by providing the second argument of the Route::get() method (or other route creation methods). Here's an example:nn$tRoute::get('/users', 'UserController@index')->name('user_index');nnIn this example, we've created a route for listing users and given it the name 'user_index'. You can then use this named route elsewhere in your application, like links or form actions.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much laravel experience do you have?

815


What is latest version of laravel?

869


What is current stable version of laravel?

870


Tell us have you used lumen before?

809


Do you know what version of laravel do you generally use?

839