Q:

Laravel 5 href route

any chance someone could explain to me how if for example I'm on 
http://localhost:8000/sales/create and I have a nav link that points to "sales/create" how I would go about structuring things so page is not directed to "sales/sales/create" when the link is clicked.
Apologies if the question is not clear.
Thank you in advance for any responses.

A:

I prefer to just give a name to my route and then reference it with:
<a href="{{ URL::route('sales/create' }}"> Create Sale </a>

Then in your route, you would provide the name as an argument:
Route::get('/sales/create', array(
    'name' => 'sales/create',
    'controller' => 'SalesController@create'
));

If you would prefer not to do this, then just make sure that the path is absolute as opposed to relative.
<a href="{{ URL::to('/sales/create') }}"> Create Sale </a>

Note the leading / in front of sales.

