title: Pass variable into Laravel {{ route }} helper
body: <p>I have routes for <code>/admin/login</code> and also for <code>/user/login</code></p>
  
  <p>I'm looking for both of the views to share the same layout file and so looking to pass the first segment (admin or user) into the route helper. </p>
  
  <p>Is that possible?</p>
  
  <p>So effectively, I'd be looking to do something like:</p>
  
  <p><code>{{ route($thisIsDynamic.'.login') }}</code></p>
  
  <p>where <code>$thisIsDynamic</code> would either be <code>admin</code> or <code>user</code> depending on the URL.</p>