0 votes
in Laravel by
What are named routes?

1 Answer

0 votes
by
A named route is a route definition with the name assigned to it. We can then use that name to call the route anywhere else in the application.

Route::get('/hello', 'HomeController@index')->name('index');

This can be accessed in a controller using the following:

return redirect()->route('index');

Related questions

0 votes
0 votes
asked Jul 15, 2023 in Angular by john ganales
+2 votes
asked Jan 16, 2022 in FuelPHP by DavidAnderson
...