What is the difference between
<a href=" {{ URL::route('/account/register') }}" >Register 1 </a>
and
<a href=" {{ URL::to('/account/register') }}" >Register 2 </a>
I defined the routes.php as
Route::get('/account/register','RegisterController@create');
When I click on 'Register 1' I got the following error
Route [/account/register] not defined.
But when I click on 'Register 2' ,it goes to the
RegisterController@create