caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

feature request: ability to add id="some.id.name" to link #16

Closed illuminate3 closed 9 years ago

illuminate3 commented 9 years ago
        $menu->add('Categories',
            array(
                'class' => '',
                'id' => 'showLeft'
            ))
            ->link->href('#');

The above won't show class or id in the html link.

I'm not sure if this is a bug or feature request.

kaidesu commented 9 years ago

I spent some time cleaning the attribute functionality up today. Your code will work, you just need to echo out the attributes within your view partial for your menu:

{!! $item->attributes() !!}

See the documentation here for more information, and let me know if you run into any issues or have questions!