mardi 1 novembre 2016

Adding a Variable to Laravel Request

I'm trying to make an Active-Navbar on my website, however in one category of my navbar it is dynamically generated and I can't seem to figure out how to put a variable in to check the request

Here's the code I have:

@foreach( Auth::user()->getTests() as $Test )
  <li >
    <a href="">
       
    </a>
  </li>
@endforeach

I've tried putting double quotes in (as PHP sees variables with double quotes), but it still doesn't seem to work. The desired outcome can be seen here

http://ift.tt/2dZzSVG

I just have a list of dynamically generated test names that I'd like to be the active item when they are selected.

Thanks!

  • Zach


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire