I need to use relative paths for my site (Lets just say for reasons I don't want to get into it has to be relative).
Currently I'm using the following in my site:
# url to controller
{{ Form::open(array('url' => 'users/signin') }}
# url to controller
<li><a href="{{action('UsersController@getLogout')}}" class="navbar-brand "> <span class=""></span> Logout </a></li>
# url to style
{{ HTML::style('css/main.css')}}
I've tried others too but all of them constructs absolute URLs such as:
http://localhost:8888/mysite/users/logout
In vanilla PHP i could place relative paths like this:
<li><a href="../search/">Search</a></li>
I abandoned HTML::style()
and used relative URLs on my css,js etc. like this which works:
<link rel="stylesheet" type="text/css" href="/css/main.css">
However how can do this for links to controller methods?