adspace
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