How to create route name in laravel 5?
Answer / 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 |
Explain how to create a controller in laravel?
How we can get user's detail when he is logged in using auth?
Explain how to add csrf protection in laravel?
What is schema in laravel?
What are Global Middleware and Route Middleware ?
Is laravel an mvc framework?
Is laravel support caching? Explain
How to create custom middleware in laravel?
What getfacadeaccessor method does?
What service provider’s register method does?
What are events in laravel?
What is a Composer command ?