I found that using route()in the named routes is much better practice. If at some point you decide, for example, that your admin panel should not point to example.com/admin, but example.com/dashboard, you will have to sift through all the code to find all the links to Url::to("/admin"). With the named routes, you just need to change the link inroutes.php
Example:
Route::get('/dashboard', ['as' => 'admin', 'uses' => 'AdminController@index']);
Now every time you need to provide a link to your admin page, just do the following:
<a href="{{ route('admin') }}">Admin</a>
Much better, in my opinion.
It is even available in your backend, for example, in AdminController.php
// do stuff
return redirect()->route('admin');
http://laravel.com/docs/5.1/routing#named-routes
source
share